This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
stefan.stamenovic
/
diligent-node-api
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Minor changes
pull/47/head^2
Djordje Djoric
4 years ago
parent
5db454013d
commit
f9ff1adbe1
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/endpoints/user.js
+ 1
- 1
src/endpoints/user.js
View File
@@ -8,7 +8,7 @@ const getUsers = async (req, res, next) => {
return res.status(200).send(allUsers)
} catch (e) {
// TODO: Jel i ovde treba next(e)?
return res.status(500).send('Internal server error!'
)
next(e
)
}
}
Write
Preview
Loading…
Cancel
Save