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

const router = express.Router();

router.use("/users", userRouter);
router.use("/auth", authRouter);
11
router.use("/posts", postRouter);
Kim, MinGyu's avatar
Kim, MinGyu committed
12
router.use("/profile", profileRouter)
13
//posting함수 -> mongodb에 posts json형식으로 저장
Kim, MinGyu's avatar
Kim, MinGyu committed
14

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