room.routers.js 494 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)
우지원's avatar
우지원 committed
18
19
20
21

// router.route('/room/memberId')
//     .get(roomCtrl.getMemberId)

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