fix auth registration and access management ui
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user