fix: add API key to remaining endpoints
- Added requiresApiKey: true to get_trace_profile, get_file_profile - Added x-api-key header to loadDefaultFaceFilter fetch call - Fixes 401 errors on admin/config, trace-profile, and file-profile endpoints
This commit is contained in:
@@ -426,7 +426,7 @@ case 'search_keyword': {
|
||||
const tid = a.trace_id ?? a.traceId
|
||||
if (fu) params.set('file_uuid', fu)
|
||||
if (tid != null) params.set('trace_id', String(tid))
|
||||
return { url: `/api/v1/trace-profile?${params.toString()}`, method: 'GET' }
|
||||
return { url: `/api/v1/trace-profile?${params.toString()}`, method: 'GET', requiresApiKey: true }
|
||||
}
|
||||
case 'get_trace_profile_file': {
|
||||
const params = new URLSearchParams()
|
||||
@@ -583,7 +583,7 @@ case 'search_keyword': {
|
||||
return { url: '/api/v1/trace-profile/group', method: 'PUT', body: { file_uuid: a.fileUuid, trace_ids: a.traceIds, name: a.name, key_frame: a.keyFrame, key_face: a.keyFace }, requiresApiKey: true }
|
||||
}
|
||||
case 'get_file_profile': {
|
||||
return { url: `/api/v1/file-profile?file_uuid=${a.fileUuid}`, method: 'GET' }
|
||||
return { url: `/api/v1/file-profile?file_uuid=${a.fileUuid}`, method: 'GET', requiresApiKey: true }
|
||||
}
|
||||
case 'update_file_profile': {
|
||||
const body: any = { file_uuid: a.fileUuid, file_path: a.filePath, file_name: a.fileName }
|
||||
|
||||
Reference in New Issue
Block a user