本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
註冊
登入
stefan.stamenovic
/
diligent-node-api
關注
2
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Minor change to status response
pull/47/head^2
Djordje Djoric
3 年之前
父節點
0c78033191
當前提交
cf4fb366f6
共有
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(40
1).send('Not authorized
!')
return res.status(40
3).send('Access forbidden
!')
}
} catch(e) {
next(e)
Write
Preview
Loading…
取消
儲存