From 015d67cf738e4ad6d397824dc09a44d85d643b75 Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 29 Jul 2021 02:46:33 +0200 Subject: Fully implement client-side login system... --- server/routes/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/routes') 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; -- cgit v1.2.3