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

@@ -28,6 +28,38 @@ export default defineConfig({
'.ddns.net'
],
proxy: {
'/api/v1/trace-profile-file': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/trace-profile': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/cluster-results': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/file/*/thumbnail': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/file/*/json/face_cluster': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/file/*/traces': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/admin/config': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1/file-profile': {
target: 'http://localhost:3002',
changeOrigin: true,
},
'/api/v1': {
target: 'http://localhost:8888',
changeOrigin: true,