fix: add auth token to all API calls (prompts, insights, pipeline)
This commit is contained in:
1 parent
89b6c0b072
commit
5091dfd1ce
5 files changed
+9
-19
No files matched your search
@@ -208,10 +208,7 @@ export default function Dashboard() {
|
||||
setPipelineLoading(true); setPipelineError(null)
|
||||
try {
|
||||
const pid = localStorage.getItem('mitai-jinkendo_active_profile')||''
|
||||
const r = await fetch('/api/insights/pipeline', {
|
||||
method:'POST', headers: pid ? {'X-Profile-Id':pid} : {}
|
||||
})
|
||||
if (!r.ok) throw new Error(await r.text())
|
||||
await api.insightPipeline()
|
||||
await load()
|
||||
} catch(e) {
|
||||
setPipelineError('Fehler: '+e.message)
|
||||
|
||||
Reference in new issue
Block a user