room.route.js 293 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
import express from "express";
import roomCrtl from "../controllers/room.controller.js";

const router = express.Router();
router.route("/getRoom").post(roomCrtl.getRoom);
router.route("/create").post(roomCrtl.createRoom);
router.route("/join").put(roomCrtl.joinRoom);

export default router;