room.route.js 293 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);
6
7
router.route("/create").post(roomCrtl.createRoom);
router.route("/join").put(roomCrtl.joinRoom);
Kim, Chaerin's avatar
Kim, Chaerin committed
8
9

export default router;