room.route.js 381 Bytes
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
2
3
4
import express from "express";
import roomCrtl from "../controllers/room.controller.js";

const router = express.Router();
Kim, Chaerin's avatar
merge19    
Kim, Chaerin committed
5
router.route("/getRoom").post(roomCrtl.getRoom);
우지원's avatar
   
우지원 committed
6
router.route("/exitRoom/:id/:roomId").delete(roomCrtl.exitRoom);
Kim, Chaerin's avatar
Kim, Chaerin committed
7
router.route("/create").post(roomCrtl.roomImgUpload, roomCrtl.createRoom);
8
router.route("/join").put(roomCrtl.joinRoom);
Kim, Chaerin's avatar
Kim, Chaerin committed
9

우지원's avatar
   
우지원 committed
10
export default router;