From dc4638d9ed6f32c8578cdd882a879fa35e084a91 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 6 Oct 2022 11:39:03 -0400 Subject: [PATCH] Move API to /comment --- web/pages/api/v0/{market/[id] => }/comment.ts | 6 ------ 1 file changed, 6 deletions(-) rename web/pages/api/v0/{market/[id] => }/comment.ts (87%) diff --git a/web/pages/api/v0/market/[id]/comment.ts b/web/pages/api/v0/comment.ts similarity index 87% rename from web/pages/api/v0/market/[id]/comment.ts rename to web/pages/api/v0/comment.ts index fe450400..7502fb28 100644 --- a/web/pages/api/v0/market/[id]/comment.ts +++ b/web/pages/api/v0/comment.ts @@ -13,12 +13,6 @@ export default async function route(req: NextApiRequest, res: NextApiResponse) { origin: [CORS_ORIGIN_MANIFOLD, CORS_ORIGIN_LOCALHOST], methods: 'POST', }) - - const { id } = req.query - const contractId = id as string - - if (req.body) req.body.contractId = contractId - try { const backendRes = await fetchBackend(req, 'createcomment') await forwardResponse(res, backendRes)