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`
rachel-carvalho authored Apr 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents cd2f6ba + 5fe8014 commit 5ac73c6
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
@@ -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;

0 comments on commit 5ac73c6

Please sign in to comment.