question.route.ts 314 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
5
import express from "express";
import { questionCtrl } from "../controllers";

const router = express.Router();

Jiwon Yoon's avatar
Jiwon Yoon committed
6
7
8
router.route("/create").post(questionCtrl.createQuestion);
router.route("/update").post(questionCtrl.updateQuestion);
router.route("/delete").post(questionCtrl.deleteQuestion);
Jiwon Yoon's avatar
Jiwon Yoon committed
9
10

export default router;