更新
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
path : "app/*/api/*.js",
|
||||
prefix : "",//接口前缀
|
||||
statusTobody: true,//是否跟随body结果(如需接口报错也返回200,那么设置为false)
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
/**
|
||||
* RBAC用户、角色、权限、组设
|
||||
* saas的权限验证
|
||||
*/
|
||||
const config = require("./config")
|
||||
|
||||
// 错误处理
|
||||
module.exports = {
|
||||
sort : 1, //排序
|
||||
use : true, // 是否使用
|
||||
fun : async (ctx, next, app) => {
|
||||
|
||||
|
||||
await next()
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user