-
Notifications
You must be signed in to change notification settings - Fork 7
update added #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: krett/mongoose
Are you sure you want to change the base?
update added #4
Conversation
| app.use(expressLayouts); | ||
| app.use('/', indexRouter); | ||
| app.use('/blog', postsRouter); | ||
| app.use('/login', usersRouter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
| // let post = { | ||
| // title: "", | ||
| // content: "" | ||
| // } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete unused code
| res.send(post); | ||
| }); | ||
| }); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to use fineOneAndUpdate()
| }); | ||
| }; | ||
|
|
||
| exports.del = function (req, res, next) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be explicit with the name del should be delete
GregTheGreek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check commetns
No description provided.