From a3eba898e2c4a71e9f5a0c18ed9e3012e03f3cfa Mon Sep 17 00:00:00 2001 From: Accusys Date: Sun, 9 Aug 2026 22:34:12 +0800 Subject: [PATCH] fix: update face filter API routes to avoid conflicts with identity_api Changed routes to use /face-filter/ prefix to avoid conflicts: - /api/v1/file/{uuid}/face-filter/faces - /api/v1/file/{uuid}/face-filter/{faceId}/report - /api/v1/file/{uuid}/face-filter/apply - /api/v1/file/{uuid}/face-filter/stats - /api/v1/file/{uuid}/face-filter/rules --- src/api/face_filter.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/face_filter.rs b/src/api/face_filter.rs index 04ae3c0d..33cb2843 100644 --- a/src/api/face_filter.rs +++ b/src/api/face_filter.rs @@ -536,10 +536,10 @@ pub async fn get_filter_rules( /// Create router for face filter API pub fn face_filter_routes() -> Router { Router::new() - .route("/api/v1/file/{file_uuid}/faces", get(get_faces)) - .route("/api/v1/file/{file_uuid}/face/{face_id}/filter-report", get(get_face_filter_report)) - .route("/api/v1/file/{file_uuid}/faces/filter", post(filter_faces)) - .route("/api/v1/file/{file_uuid}/filter-stats", get(get_filter_stats)) - .route("/api/v1/file/{file_uuid}/filter-rules", get(get_filter_rules)) - .route("/api/v1/file/{file_uuid}/filter-rules", post(save_filter_rules)) + .route("/api/v1/file/{file_uuid}/face-filter/faces", get(get_faces)) + .route("/api/v1/file/{file_uuid}/face-filter/{face_id}/report", get(get_face_filter_report)) + .route("/api/v1/file/{file_uuid}/face-filter/apply", post(filter_faces)) + .route("/api/v1/file/{file_uuid}/face-filter/stats", get(get_filter_stats)) + .route("/api/v1/file/{file_uuid}/face-filter/rules", get(get_filter_rules)) + .route("/api/v1/file/{file_uuid}/face-filter/rules", post(save_filter_rules)) }