aboutsummaryrefslogtreecommitdiff
path: root/server/routes
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-29 02:46:33 +0200
committerMateja <mail@matejamaric.com>2021-07-29 02:46:33 +0200
commit015d67cf738e4ad6d397824dc09a44d85d643b75 (patch)
tree122c50c85b5659332117b735790231b257b4724a /server/routes
parent9f4a1c17d4f544784dc5e11ecf6d04c8b5d0582a (diff)
downloadmevn-ecommerce-015d67cf738e4ad6d397824dc09a44d85d643b75.tar.gz
mevn-ecommerce-015d67cf738e4ad6d397824dc09a44d85d643b75.zip
Fully implement client-side login system...
Diffstat (limited to 'server/routes')
-rw-r--r--server/routes/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/routes/api.js b/server/routes/api.js
index b680b70..0c73ec0 100644
--- a/server/routes/api.js
+++ b/server/routes/api.js
@@ -18,7 +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.post('/transactions/setup', transactionController.setup);
-router.post('/transactions/capture', transactionController.capture);
+router.post('/transactions/setup', isAuth, transactionController.setup);
+router.post('/transactions/capture', isAuth, transactionController.capture);
module.exports = router;