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
This commit is contained in:
@@ -536,10 +536,10 @@ pub async fn get_filter_rules(
|
||||
/// Create router for face filter API
|
||||
pub fn face_filter_routes() -> Router<AppState> {
|
||||
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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user