浏览代码

Minor change to status response

pull/47/head^2
Djordje Djoric 3 年前
父节点
当前提交
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)

正在加载...
取消
保存