From 1f3f3cac4b62684aae087da1ebcef26721fdaf84 Mon Sep 17 00:00:00 2001 From: Rachel Carvalho Date: Wed, 17 Apr 2024 12:39:43 -0400 Subject: [PATCH 1/2] change GET /api/products/create route to POST /api/products --- web/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.js b/web/index.js index fe7bc7b5..7817acc0 100644 --- a/web/index.js +++ b/web/index.js @@ -46,7 +46,7 @@ app.get("/api/products/count", async (_req, res) => { res.status(200).send(countData); }); -app.get("/api/products/create", async (_req, res) => { +app.post("/api/products", async (_req, res) => { let status = 200; let error = null; From 5fe801432599b39b8c046597daa44de1a08350ef Mon Sep 17 00:00:00 2001 From: Rachel Carvalho Date: Thu, 18 Apr 2024 14:38:04 -0400 Subject: [PATCH 2/2] update frontend submodule to post when creating products --- web/frontend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/frontend b/web/frontend index 7098301f..800eb869 160000 --- a/web/frontend +++ b/web/frontend @@ -1 +1 @@ -Subproject commit 7098301fbefeb26fafe8e3d5191599e95314700e +Subproject commit 800eb8691cb9585e6f14e8fb940d87ebe0f34e9d