room.route.js 438 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);
9
10
router.route("/joinChannel").put(roomCrtl.joinChannel);

Kim, Chaerin's avatar
Kim, Chaerin committed
11

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