Explorar el Código

Minor change to status response

pull/47/head^2
Djordje Djoric hace 3 años
padre
commit
cf4fb366f6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/middleware/auth.js

+ 1
- 1
src/middleware/auth.js Ver fichero

next() next()
} }
else { else {
return res.status(401).send('Not authorized!')
return res.status(403).send('Access forbidden!')
} }
} catch(e) { } catch(e) {
next(e) next(e)

Cargando…
Cancelar
Guardar