room.routers.js 679 Bytes
Newer Older
Soo Hyun Kim's avatar
Soo Hyun Kim committed
1
2
3
4
5
6
7
import express from 'express'
import roomCtrl from '../controllers/room.controller.js'

const router = express.Router()

router.route('/room/makeRoom')
    .post(roomCtrl.makeRoom)
Choi Ga Young's avatar
Choi Ga Young committed
8

우지원's avatar
우지원 committed
9
10
11
12
router.route('/room/changeMem')
    .put(roomCtrl.changemember)
    .get(roomCtrl.roomInf)

Choi Ga Young's avatar
Choi Ga Young committed
13
14
router.route('/room/closedlist')
    .get(roomCtrl.getClosedList)
15
16
17

router.route('/room/openlist')
    .get(roomCtrl.getOpenList)
Soo Hyun Kim's avatar
Soo Hyun Kim committed
18
19
20

router.route('/room/member')
    .put(roomCtrl.changemember)
Soo Hyun Kim's avatar
Soo Hyun Kim committed
21
22
23

router.route('/room/getRoomName')
    .get(roomCtrl.getRoomName)
24

JeongYeonwoo's avatar
JeongYeonwoo committed
25
26
router.route('/room/unreadMessage')
    .get(roomCtrl.unreadMessage)
27

JeongYeonwoo's avatar
JeongYeonwoo committed
28
29
router.route('/room/dbChat')
    .get(roomCtrl.dbChat)
30

Soo Hyun Kim's avatar
Soo Hyun Kim committed
31
export default router