post.route.ts 208 Bytes
Newer Older
Lee Soobeom's avatar
Lee Soobeom committed
1
import express from "express";
Lee Soobeom's avatar
Lee Soobeom committed
2
import { postCtrl, authCtrl } from "../controllers";
Lee Soobeom's avatar
Lee Soobeom committed
3
4
5

const router = express.Router();

Lee Soobeom's avatar
Lee Soobeom committed
6
router.route("/").post(authCtrl.requireLogin, postCtrl.posting);
Lee Soobeom's avatar
Lee Soobeom committed
7
8

export default router;