aboutsummaryrefslogtreecommitdiff
path: root/server/routes
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-29 20:50:02 +0200
committerMateja <mail@matejamaric.com>2021-07-29 20:50:02 +0200
commit104948f25ed38ef2ee354b271fb2368dca1b6c4d (patch)
tree249f79b65ecb778961f7f680caa284d9ec9c134d /server/routes
parentaec70cba2579088d0f8a9cac2ba33030c5c17d22 (diff)
downloadmevn-ecommerce-104948f25ed38ef2ee354b271fb2368dca1b6c4d.tar.gz
mevn-ecommerce-104948f25ed38ef2ee354b271fb2368dca1b6c4d.zip
Add API endpoint for show paid orders to user.
Also, now all info in database is provided when authorized.
Diffstat (limited to 'server/routes')
-rw-r--r--server/routes/api.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/routes/api.js b/server/routes/api.js
index 0c73ec0..7bee7be 100644
--- a/server/routes/api.js
+++ b/server/routes/api.js
@@ -18,6 +18,7 @@ router.patch('/products/:id', isAuth, isAdmin, upload.single('image'), productsC
router.delete('/products/:id', isAuth, isAdmin, productsController.destroy);
router.get('/transactions/paid', isAuth, isAdmin, transactionController.showPaid);
+router.get('/transactions/personal', isAuth, transactionController.showPaidByUser);
router.post('/transactions/setup', isAuth, transactionController.setup);
router.post('/transactions/capture', isAuth, transactionController.capture);