-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
454 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as Users } from "./userRoute.js"; | ||
export { default as Events } from "./eventsRoute.js"; | ||
export { default as Admin } from "./adminRoute.js"; | ||
export { default as Support } from "./sesRoute.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import express from "express"; | ||
import { Module } from "../../libs/utils/types/module.js"; | ||
import {Paid, Registered,Emergency,Sendotp } from "../controllers/sesController.js"; | ||
import asyncMiddleware from "../middlewares/asyncMiddleware.js"; | ||
|
||
const router = express.Router(); | ||
const BASE_ROUTE = "/support"; | ||
|
||
router.post("/registered", asyncMiddleware(Registered)); | ||
router.post("/paid", asyncMiddleware(Paid)); | ||
router.post("/emergency", asyncMiddleware(Emergency)); | ||
router.post("/sendotp", asyncMiddleware(Sendotp)); | ||
|
||
const MODULE: Module = { | ||
router, | ||
BASE_ROUTE, | ||
}; | ||
export default MODULE; |
This file was deleted.
Oops, something went wrong.