Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const create = (req, res) => {
- const user = {
- login: req.body.login,
- password: req.body.password,
- };
- User.create(user, (err, result) => {
- if (err) {
- console.log(err);
- throw res.sendStatus(500);
- }
- res.send(user);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement