mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
파일/폴더 삭제 및 이름 변경 구현 완료
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user