From cfdbe6d68ba544deedd414c7f79e10a91940a112 Mon Sep 17 00:00:00 2001 From: Abdelrahman Mohammed Date: Mon, 9 Dec 2024 00:54:44 +0200 Subject: [PATCH] fix: switch get to post --- backend/src/routes/promoCode.route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/promoCode.route.ts b/backend/src/routes/promoCode.route.ts index 408cd85..885aa85 100644 --- a/backend/src/routes/promoCode.route.ts +++ b/backend/src/routes/promoCode.route.ts @@ -5,7 +5,7 @@ const promoCodeRouter = Router(); promoCodeRouter.post('/', PromoCodeController.createPromoCode); promoCodeRouter.get('/', PromoCodeController.getAllPromoCodes); -promoCodeRouter.get('/verify', PromoCodeController.verifyPromoCode); +promoCodeRouter.post('/verify', PromoCodeController.verifyPromoCode); promoCodeRouter.get('/:id', PromoCodeController.getPromoCodeById); promoCodeRouter.delete('/:id', PromoCodeController.deletePromoCode); promoCodeRouter.patch('/:id', PromoCodeController.updatePromoCode);