Skip to content

Commit 4782945

Browse files
committed
fix: 500 on create session - missing body
1 parent 0ab3c85 commit 4782945

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/api.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ const apiRequest = async <T>(
6060
}
6161

6262
// Session Management
63-
export const createSession = async (): Promise<Session> => {
63+
export const createSession = async (options?: { parentID?: string; title?: string }): Promise<Session> => {
6464
return apiRequest<Session>('/session', {
65-
method: 'POST'
65+
method: 'POST',
66+
body: options ? JSON.stringify(options) : JSON.stringify({})
6667
})
6768
}
6869

0 commit comments

Comments
 (0)