Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
stefan.stamenovic
/
diligent-node-api
Segui
2
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Minor change to status response
pull/47/head^2
Djordje Djoric
3 anni fa
parent
0c78033191
commit
cf4fb366f6
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Mostra Diff Stats
1
1
src/middleware/auth.js
+ 1
- 1
src/middleware/auth.js
Vedi 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…
Annulla
Salva