index.ts 478 Bytes
Newer Older
1
2
import express from "express";
import authRouter from "./auth.route";
Jiwon Yoon's avatar
Jiwon Yoon committed
3
import questionRouter from "./question.route";
Jiwon Yoon's avatar
Jiwon Yoon committed
4
import surveyRouter from "./survey.route";
Yoon, Daeki's avatar
Yoon, Daeki committed
5
import roleRouter from "./role.route";
Yoon, Daeki's avatar
Yoon, Daeki committed
6
import userRouter from "./user.route";
7
8
9
10

const router = express.Router();

router.use("/auth", authRouter);
Yoon, Daeki's avatar
Yoon, Daeki committed
11
router.use("/questions", questionRouter);
Jiwon Yoon's avatar
Jiwon Yoon committed
12
router.use("/surveys", surveyRouter);
Yoon, Daeki's avatar
Yoon, Daeki committed
13
14
router.use("/roles", roleRouter);
router.use("/users", userRouter);
15
16

export default router;