room.route.js 736 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);
권병윤's avatar
0806    
권병윤 committed
9
router.route("/changename").put(roomCrtl.changename);
권병윤's avatar
0807    
권병윤 committed
10
router.route("/profileimg").put(roomCrtl.roomImgUpload, roomCrtl.update)
우지원's avatar
0805    
우지원 committed
11
router.route("/joinChannel").post(roomCrtl.joinChannel);
우지원's avatar
우지원 committed
12
router.route("/doubleJoin").post(roomCrtl.doubleJoin);
13
14
router.route("/makeChannel").put(roomCrtl.makeChannel);
router.route("/channelDelete").put(roomCrtl.channelDelete);
Kim, Chaerin's avatar
Kim, Chaerin committed
15

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