Compare commits
2 Commits
e791b01160
...
043d45862c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
043d45862c | ||
![]() |
8444b947a4 |
@@ -1,30 +0,0 @@
|
|||||||
// src/app/api/product/image/upload/route.ts
|
|
||||||
//
|
|
||||||
// PURPOSE:
|
|
||||||
// handle upload product image
|
|
||||||
//
|
|
||||||
// RULES:
|
|
||||||
// T.B.A.
|
|
||||||
|
|
||||||
import type { NextRequest } from 'next/server';
|
|
||||||
|
|
||||||
import { STATUS, response, handleError } from 'src/utils/response';
|
|
||||||
|
|
||||||
// import prisma from '../../../lib/prisma';
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
|
||||||
|
|
||||||
/** **************************************
|
|
||||||
* GET - Products
|
|
||||||
*************************************** */
|
|
||||||
export async function POST(req: NextRequest) {
|
|
||||||
try {
|
|
||||||
const { data } = await req.json();
|
|
||||||
console.log('helloworld');
|
|
||||||
|
|
||||||
return response({ hello: 'world' }, STATUS.OK);
|
|
||||||
} catch (error) {
|
|
||||||
console.log({ hello: 'world' });
|
|
||||||
return handleError('Product - store product image', error);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -17,15 +17,13 @@ export function ProductList({ products, loading, sx, ...other }: Props) {
|
|||||||
const renderLoading = () => <ProductItemSkeleton />;
|
const renderLoading = () => <ProductItemSkeleton />;
|
||||||
|
|
||||||
const renderList = () =>
|
const renderList = () =>
|
||||||
products.map((product) => {
|
products.map((product) => (
|
||||||
return (
|
<ProductItem
|
||||||
<ProductItem
|
key={product.id}
|
||||||
key={product.id}
|
product={product}
|
||||||
product={product}
|
detailsHref={paths.product.details(product.id)}
|
||||||
detailsHref={paths.product.details(product.id)}
|
/>
|
||||||
/>
|
));
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
T.B.A.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
```markdown
|
|
||||||
# Greetings
|
# Greetings
|
||||||
|
|
||||||
|
```markdown
|
||||||
Hi,
|
Hi,
|
||||||
|
|
||||||
Imagine you are a software engineer and i will send you the guideline.
|
Imagine you are a software engineer and i will send you the guideline.
|
||||||
|
@@ -25,7 +25,7 @@ T.B.A.
|
|||||||
1 AI tools/co-pilot
|
1 AI tools/co-pilot
|
||||||
|
|
||||||
```prompt
|
```prompt
|
||||||
please read and follow steps in the markdown files in `98_AI_workspace` folder thanks.
|
please read and follow steps in the markdown files in `98_AI_workspace/software-engineer` folder thanks.
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- AI: please fill the step to setup project below -->
|
<!-- AI: please fill the step to setup project below -->
|
||||||
|
Reference in New Issue
Block a user