diff --git a/src/services/api.ts b/src/services/api.ts index 28ee350..c87dbf7 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -60,9 +60,10 @@ const apiRequest = async ( } // Session Management -export const createSession = async (): Promise => { +export const createSession = async (options?: { parentID?: string; title?: string }): Promise => { return apiRequest('/session', { - method: 'POST' + method: 'POST', + body: options ? JSON.stringify(options) : JSON.stringify({}) }) }