49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
######################################################
|
||
### 接口相关控制,接口文件需要使用jwt进行token验证 ###
|
||
######################################################
|
||
#用户认证登陆相关
|
||
location /api/user {
|
||
content_by_lua_file '${APP_PATH}/src/api/system/login.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/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';
|
||
} |