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
@@ -23,6 +23,7 @@ const jput=(d)=>({method:'PUT', headers:{'Content-Type':'application/json'},body
|
||||
|
||||
export const api = {
|
||||
// Profiles
|
||||
getActiveProfile: () => req('/profile'),
|
||||
listProfiles: () => req('/profiles'),
|
||||
createProfile: (d) => req('/profiles', json(d)),
|
||||
updateProfile: (id,d) => req(`/profiles/${id}`, jput(d)),
|
||||
@@ -82,6 +83,8 @@ export const api = {
|
||||
// Stats & AI
|
||||
getStats: () => req('/stats'),
|
||||
insightTrend: () => req('/insights/trend',{method:'POST'}),
|
||||
listPrompts: () => req('/prompts'),
|
||||
runInsight: (slug) => req(`/insights/run/${slug}`,{method:'POST'}),
|
||||
insightPipeline: () => req('/insights/pipeline',{method:'POST'}),
|
||||
listInsights: () => req('/insights'),
|
||||
latestInsights: () => req('/insights/latest'),
|
||||
|
||||
Reference in new issue
Block a user