fix: add missing proxy routes and API keys for Core API endpoints

- Added proxy routes for /api/v1/file/*/json/face_cluster, /api/v1/file/*/traces, /api/v1/admin/config, /api/v1/file-profile
- Added requiresApiKey: true to get_cluster_results
- Fixes 500 errors when loading cluster results and other Core API endpoints
This commit is contained in:
2026-10-31 00:52:16 +08:00
parent 52c3e72167
commit c00dcfbfbb
2 changed files with 33 additions and 1 deletions

View File

@@ -570,7 +570,7 @@ case 'search_keyword': {
return { url: `/api/v1/file/${a.fileUuid}/cluster-agent`, method: 'POST', body: { confirm: true }, timeout: 600000 }
}
case 'get_cluster_results': {
return { url: `/api/v1/file/${a.fileHash}/json/face_cluster`, method: 'POST', body: {} }
return { url: `/api/v1/file/${a.fileHash}/json/face_cluster`, method: 'POST', body: {}, requiresApiKey: true }
}
case 'get_similar_face_groups': {
const params = new URLSearchParams()