feat(admin): manual request-records cleanup with typed confirmation

This commit is contained in:
Kayphoon
2026-05-13 00:36:43 +08:00
parent 8714d93d4b
commit 15800d7a80
21 changed files with 1064 additions and 28 deletions

View File

@@ -103,6 +103,26 @@ pub(super) fn classify_admin_system_family_route(
"admin:system",
false,
))
} else if method == http::Method::POST
&& normalized_path == "/api/admin/system/cleanup/usage/manual"
{
Some(classified(
"admin_proxy",
"system_manage",
"cleanup_usage_manual",
"admin:system",
false,
))
} else if method == http::Method::GET
&& normalized_path == "/api/admin/system/cleanup/usage/preview"
{
Some(classified(
"admin_proxy",
"system_manage",
"cleanup_usage_preview",
"admin:system",
false,
))
} else if method == http::Method::POST && normalized_path == "/api/admin/system/purge/config" {
Some(classified(
"admin_proxy",