diff --git a/src/lib/api/client.ts b/src/lib/api/client.ts index 2bbcf814..f6b65adc 100644 --- a/src/lib/api/client.ts +++ b/src/lib/api/client.ts @@ -146,9 +146,14 @@ export class ApiClient { /** * DELETE 요청 + * @param endpoint API 엔드포인트 + * @param options body 데이터 (일괄 삭제 등에서 사용) */ - async delete(endpoint: string): Promise { - return this.request(endpoint, { method: 'DELETE' }); + async delete(endpoint: string, options?: { data?: unknown }): Promise { + return this.request(endpoint, { + method: 'DELETE', + body: options?.data ? JSON.stringify(options.data) : undefined, + }); } /**