Skip to content

Commit

Permalink
Merge pull request #1325 from Shopify/change_create_products_to_post
Browse files Browse the repository at this point in the history
Change create product route to `POST /api/products`
  • Loading branch information
rachel-carvalho committed Apr 18, 2024
2 parents cd2f6ba + 5fe8014 commit 5ac73c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/frontend
2 changes: 1 addition & 1 deletion web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5ac73c6

Please sign in to comment.