Commit d312cb31 authored by Choi Ga Young's avatar Choi Ga Young
Browse files

xxxxxxx

parent 43ee14e5
......@@ -70,12 +70,6 @@ const loginNavbar = async (req, res) => {
}
}
const saveroom = async (req, res) => {
const roomId = room.roomId
if (!isLength(roomId, { min: 11 })) {
return res.status(422).send('방아이디 저장에 오류가 발생하였습니다.')
}
}
export default { signup, logineduser, changenick, loginNavbar, saveroom }
export default { signup, logineduser, changenick, loginNavbar }
// {} : 객체로 return 함
......@@ -13,10 +13,8 @@ const RoomSchema = new mongoose.Schema({
select: false
},
isOpen: {
type: String,
type: Boolean,
required: true,
default: 'user',
enum: ['true', 'false']
},
moderator: {
type: String,
......
......@@ -12,8 +12,6 @@ router.route(`/users/:userId`)
.put(userCtrl.changenick)
.get(userCtrl.loginNavbar)
router.route(`users/:name`)
.post(userCtrl.saveroom)
// router.param('userId', userCtrl.userById)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment