Procházet zdrojové kódy

Minor change to status response

pull/47/head^2
Djordje Djoric před 4 roky
rodič
revize
cf4fb366f6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/middleware/auth.js

+ 1
- 1
src/middleware/auth.js Zobrazit soubor

@@ -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)

Načítá se…
Zrušit
Uložit