fix(api): set JSON Content-Type on onboarding-seed
POST /workspaces/onboarding-seed now sends application/json so servers that require it parse the body correctly. Made-with: Cursor
This commit is contained in:
parent
f8a50cdd95
commit
59d13e423e
@ -231,7 +231,11 @@ export async function listNoteVersions(
|
|||||||
|
|
||||||
export async function seedOnboardingWorkspace(): Promise<{ workspaceId: string; noteIds: string[] }> {
|
export async function seedOnboardingWorkspace(): Promise<{ workspaceId: string; noteIds: string[] }> {
|
||||||
const api = createNotesApiClient();
|
const api = createNotesApiClient();
|
||||||
return api.fetch("/workspaces/onboarding-seed", { method: "POST", body: JSON.stringify({}) });
|
return api.fetch("/workspaces/onboarding-seed", {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({}),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function chatOverWorkspace(workspaceId: string, message: string): Promise<{
|
export async function chatOverWorkspace(workspaceId: string, message: string): Promise<{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user