파일/폴더 삭제 및 이름 변경 구현 완료

This commit is contained in:
static
2025-01-06 14:30:00 +09:00
parent bd0dd3343a
commit 71f12c942b
6 changed files with 75 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ export const callGetApi = async (input: RequestInfo, fetchInternal?: typeof fetc
export const callPostApi = async <T>(
input: RequestInfo,
payload: T,
payload?: T,
fetchInternal?: typeof fetch,
) => {
return await callApi(
@@ -28,7 +28,7 @@ export const callPostApi = async <T>(
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
body: payload ? JSON.stringify(payload) : undefined,
},
fetchInternal,
);