Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
messenger
Commits
d312cb31
Commit
d312cb31
authored
Jan 18, 2021
by
Choi Ga Young
Browse files
xxxxxxx
parent
43ee14e5
Changes
3
Show whitespace changes
Inline
Side-by-side
server/controllers/user.controller.js
View file @
d312cb31
...
...
@@ -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 함
server/models/Room.js
View file @
d312cb31
...
...
@@ -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
,
...
...
server/routes/user.routes.js
View file @
d312cb31
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment