From ac1599a6643ebee849aa2ced094115cd8ce6aad6 Mon Sep 17 00:00:00 2001 From: Ben <36240171+benkyd@users.noreply.github.com> Date: Thu, 28 Apr 2022 00:01:59 +0100 Subject: [PATCH] little note for myself Former-commit-id: 46a236e05d878d1e50b9eccc6a34b281eef7a460 --- client/public/components/checkout.mjs | 2 +- docs/API.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/public/components/checkout.mjs b/client/public/components/checkout.mjs index 0c1ed68..5b7f096 100644 --- a/client/public/components/checkout.mjs +++ b/client/public/components/checkout.mjs @@ -91,7 +91,7 @@ class Checkout extends Component {
Discount - £-${parseFloat(this.state.discount).toFixed(2)} + -£${parseFloat(this.state.discount).toFixed(2)}
Total diff --git a/docs/API.md b/docs/API.md index 781d65b..f059d44 100644 --- a/docs/API.md +++ b/docs/API.md @@ -22,8 +22,8 @@ automatically every request | GET | /api/basket/price/ | | ❌ | | | GET | /api/discount/ | offer code | ❌ | | | GET | /api/auth/login/ | | ✔️ | | -| POST | /api/auth/order/ | | ✔️❌ | | -| GET | /api/auth/order/:id | | ✔️❌ | | +| POST | /api/auth/order/ | | ❌ | | +| GET | /api/auth/order/:id | | ❌ | Security By Obscurity | | GET | /api/auth/orders/ | | ✔️ | | Query endpoints do not return the full data on a brick/set, they return