Revert "fix: add API key to remaining endpoints"

This reverts commit a26f1fe9f1.
This commit is contained in:
2026-11-01 14:40:57 +08:00
parent 25c4ba2555
commit 24efec604f
2 changed files with 3 additions and 6 deletions

View File

@@ -1920,10 +1920,7 @@ let adminFaceFilter: any = null
async function loadDefaultFaceFilter() {
try {
const base = getApiBase()
const apiKey = localStorage.getItem('momentry_api_key') || 'muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69'
const res = await fetch(`${base}/api/v1/admin/config`, {
headers: { 'x-api-key': apiKey }
})
const res = await fetch(`${base}/api/v1/admin/config`)
if (!res.ok) throw new Error(`HTTP ${res.status}`)
const config: any = await res.json()
adminFaceFilter = config?.filter_config?.face || null