Skip to content

Commit

Permalink
fix(orderCancel): change from post to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
timsu92 committed Aug 23, 2023
1 parent a612677 commit af82994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ app.get(`/api/${process.env.apiVer}/orders/order`, OrderSummary);


app.post(`/api/${process.env.apiVer}/orders/:orderId/checkout`, orderCheckout);
app.post(`/api/${process.env.apiVer}/orders/:orderId/cancel`, orderCancel);
app.delete(`/api/${process.env.apiVer}/orders/:orderId/cancel`, orderCancel);

app.listen(port, () => {
console.log(`Rapid dining backend listening on port:${port}`);
Expand Down

0 comments on commit af82994

Please sign in to comment.