diff --git a/03_source/cms_backend/src/app/api/product/image/upload/route.ts b/03_source/cms_backend/src/app/api/product/image/upload/route.ts deleted file mode 100644 index 22a1330..0000000 --- a/03_source/cms_backend/src/app/api/product/image/upload/route.ts +++ /dev/null @@ -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); - } -} diff --git a/03_source/frontend/src/sections/product/product-list.tsx b/03_source/frontend/src/sections/product/product-list.tsx index 09844eb..88f37bd 100644 --- a/03_source/frontend/src/sections/product/product-list.tsx +++ b/03_source/frontend/src/sections/product/product-list.tsx @@ -17,15 +17,13 @@ export function ProductList({ products, loading, sx, ...other }: Props) { const renderLoading = () => ; const renderList = () => - products.map((product) => { - return ( - - ); - }); + products.map((product) => ( + + )); return ( <>