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 change to status response
pull/47/head^2
Djordje Djoric
3 years ago
parent
0c78033191
commit
cf4fb366f6
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/middleware/auth.js
+ 1
- 1
src/middleware/auth.js
View File
@@ -30,7 +30,7 @@ const authRole = async (req, res, next) => {
next()
}
else {
return res.status(40
1).send('Not authorized
!')
return res.status(40
3).send('Access forbidden
!')
}
} catch(e) {
next(e)
Write
Preview
Loading…
Cancel
Save