index.ts 324 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";
Yoon, Daeki's avatar
Yoon, Daeki committed
5
6
7
8
9

const router = express.Router();

router.use("/users", userRouter);
router.use("/auth", authRouter);
Lee Soobeom's avatar
주석    
Lee Soobeom committed
10
router.use("/posts", postRouter); //router.route
Yoon, Daeki's avatar
Yoon, Daeki committed
11

Kim, MinGyu's avatar
Kim, MinGyu committed
12

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