diff options
| -rw-r--r-- | thallium-frontend/src/api/client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thallium-frontend/src/api/client.ts b/thallium-frontend/src/api/client.ts index bbba0d5..1e23110 100644 --- a/thallium-frontend/src/api/client.ts +++ b/thallium-frontend/src/api/client.ts @@ -49,11 +49,11 @@ export const get = async (url: string, options: RequestInit = {}): Promise<APIRe export const post = async (url: string, data: APIRequestBody, options: RequestInit = {}): Promise<APIResponseBody> => { return request(url, { - ...options, method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(data), + ...options, }); }; |