将数据表操作进行接口文件的配置统一到一个文件处理,并对接口文件进行jwt的认证
This commit is contained in:
parent
94edd142e4
commit
f807eb10fd
55
conf/system/system.conf
Normal file
55
conf/system/system.conf
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
######################################################
|
||||
### 接口相关控制,接口文件需要使用jwt进行token验证 ###
|
||||
######################################################
|
||||
#用户认证登陆相关
|
||||
location /api/auth {
|
||||
content_by_lua_file '${APP_PATH}/src/api/auth/auth.lua';
|
||||
}
|
||||
|
||||
#账号信息数据接口
|
||||
location /api/system/accounts {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/account.lua';
|
||||
}
|
||||
|
||||
#应用程序信息数据接口
|
||||
location /api/system/applications {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/application.lua';
|
||||
}
|
||||
|
||||
#组织(岗位)信息数据接口
|
||||
location /api/system/departments {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/department.lua';
|
||||
}
|
||||
|
||||
#菜单信息数据接口
|
||||
location /api/system/menus {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/menu.lua';
|
||||
}
|
||||
|
||||
#权限信息数据接口
|
||||
location /api/system/permissions {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/permission.lua';
|
||||
}
|
||||
|
||||
#岗位信息数据接口
|
||||
location /api/system/positions {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/position.lua';
|
||||
}
|
||||
|
||||
#账号信息数据接口
|
||||
location /api/system/roles {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/role.lua';
|
||||
}
|
||||
|
||||
#用户信息数据接口
|
||||
location /api/system/users {
|
||||
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
||||
content_by_lua_file '${APP_PATH}/src/api/system/user.lua';
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user