aboutsummaryrefslogtreecommitdiff
path: root/server/routes
diff options
context:
space:
mode:
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;