room.route.js 317 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();
우지원's avatar
0728    
우지원 committed
5
router.route("/getRoom").post(roomCrtl.getRoom);
우지원's avatar
0802    
우지원 committed
6
router.route("/create").post(roomCrtl.roomImgUpload, roomCrtl.createRoom);
7
router.route("/join").put(roomCrtl.joinRoom);
Kim, Chaerin's avatar
Kim, Chaerin committed
8
9

export default router;