Skip to content

Commit 593eee2

Browse files
committed
store in schema1
1 parent ecf8158 commit 593eee2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/subscription.route.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
const express = require("express");
2-
const { sendSubscription, sendSubscriberNotification ,requestOtp,verifyOtp} = require("../controllers/SubscrptionsContoller");
2+
const { sendSubscription, sendSubscriberNotification, requestOtp, verifyOtp } = require("../controllers/subscrptionsContoller");
33
const router = express.Router();
4+
const authenticate = require("../middleware/authenticate");
45

56
router.post("/subscribe", sendSubscription);
67
router.post("/notify", sendSubscriberNotification);
78
router.post("/otp-send", requestOtp);
8-
router.post("/otp-verify", verifyOtp);
9+
router.post("/otp-verify", authenticate, verifyOtp);
910

1011

1112
module.exports = router;

0 commit comments

Comments
 (0)