We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab3c85 commit 4782945Copy full SHA for 4782945
src/services/api.ts
@@ -60,9 +60,10 @@ const apiRequest = async <T>(
60
}
61
62
// Session Management
63
-export const createSession = async (): Promise<Session> => {
+export const createSession = async (options?: { parentID?: string; title?: string }): Promise<Session> => {
64
return apiRequest<Session>('/session', {
65
- method: 'POST'
+ method: 'POST',
66
+ body: options ? JSON.stringify(options) : JSON.stringify({})
67
})
68
69
0 commit comments