Skip to content

Conversation

@DeveloperForWayne
Copy link

No description provided.

app.use(expressLayouts);
app.use('/', indexRouter);
app.use('/blog', postsRouter);
app.use('/login', usersRouter);

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: ""
// }

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);
});
});
};

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) {

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

Copy link

@GregTheGreek GregTheGreek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check commetns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants