aboutsummaryrefslogtreecommitdiff
path: root/server/routes
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-16 02:20:32 +0200
committerMateja <mail@matejamaric.com>2021-07-16 02:20:32 +0200
commit3f05bd208cba2d57446ad95d8383be2ed1089c87 (patch)
tree3da912888bcf146a77192bc5effc59a465b6535e /server/routes
parent40358139a8ad1cba015c109dde915d6d8955fd99 (diff)
downloadmevn-ecommerce-3f05bd208cba2d57446ad95d8383be2ed1089c87.tar.gz
mevn-ecommerce-3f05bd208cba2d57446ad95d8383be2ed1089c87.zip
Setup and capture test transactions.
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 c48e169..feea5dd 100644
--- a/server/routes/api.js
+++ b/server/routes/api.js
@@ -17,7 +17,7 @@ router.post('/products', isAuth, isAdmin, upload.single('image'), productsContro
router.patch('/products/:id', isAuth, isAdmin, upload.single('image'), productsController.update);
router.delete('/products/:id', isAuth, isAdmin, productsController.destroy);
-router.post('/transaction/setup', isAuth, transactionController.setup);
-router.get('/transaction/capture', transactionController.capture);
+router.post('/transaction/setup', transactionController.setup);
+router.post('/transaction/capture', transactionController.capture);
module.exports = router;