Преглед изворни кода

Minor change to status response

pull/47/head^2
Djordje Djoric пре 4 година
родитељ
комит
cf4fb366f6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/middleware/auth.js

+ 1
- 1
src/middleware/auth.js Прегледај датотеку

@@ -30,7 +30,7 @@ const authRole = async (req, res, next) => {
next()
}
else {
return res.status(401).send('Not authorized!')
return res.status(403).send('Access forbidden!')
}
} catch(e) {
next(e)

Loading…
Откажи
Сачувај