Some changes
This commit is contained in:
parent
e738d80579
commit
60cd0f69cc
8 changed files with 58 additions and 8 deletions
|
@ -26,7 +26,7 @@ module.exports = function (passport) {
|
|||
if (err) {
|
||||
res.status(item || 500).send(err.message)
|
||||
} else {
|
||||
res.status(200).json(item)
|
||||
res.status(201).json(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue