fix auth registration and access management ui

This commit is contained in:
lix-2026
2026-05-22 01:47:40 +08:00
parent fdb20300e9
commit 531e845600
16 changed files with 1316 additions and 410 deletions
+13
View File
@@ -53,6 +53,10 @@ pub fn build_router(state: AppState) -> Router {
"/admin/access-policy",
get(gateway::admin_access_policy_entry),
)
.route(
"/user/access-policy",
get(gateway::user_access_policy_entry),
)
.route("/auth", get(gateway::auth_entry).post(gateway::auth_entry))
.route("/search", get(search::shell))
.route(
@@ -136,6 +140,15 @@ pub fn build_router(state: AppState) -> Router {
"/api/admin/share-grants/{share_id}",
delete(local_folder_source::delete_share_grant),
)
.route(
"/api/user/share-grants",
get(local_folder_source::get_user_share_grants)
.post(local_folder_source::create_user_share_grant),
)
.route(
"/api/user/share-grants/{share_id}",
delete(local_folder_source::delete_user_share_grant),
)
.route(
"/api/local-folder/shared-cache/record",
post(local_folder_source::record_shared_cache),