index.ts 476 Bytes
Newer Older
Yoon, Daeki's avatar
Yoon, Daeki committed
1
2
3
import express from "express";
import userRouter from "./user.route";
import authRouter from "./auth.route";
Lee Soobeom's avatar
Lee Soobeom committed
4
import postRouter from "./post.route";
Kim, MinGyu's avatar
Kim, MinGyu committed
5
import profileRouter from "./profile.route";
백승민's avatar
백승민 committed
6
import mainimgRouter from "./mainimg.route";
Yoon, Daeki's avatar
Yoon, Daeki committed
7
8
9
10
11

const router = express.Router();

router.use("/users", userRouter);
router.use("/auth", authRouter);
12
router.use("/posts", postRouter);
13
router.use("/profile", profileRouter);
백승민's avatar
백승민 committed
14
router.use("/mainimg", mainimgRouter);
Kim, MinGyu's avatar
Kim, MinGyu committed
15

Yoon, Daeki's avatar
Yoon, Daeki committed
16
export default router;