change service url uploader
This commit is contained in:
@@ -10,7 +10,7 @@ export const singleUpload = async (
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
const { data } = await axios.post<SingleUploadResponse>(
|
const { data } = await axios.post<SingleUploadResponse>(
|
||||||
`/uploader/single-file`,
|
`/admin/single-file`,
|
||||||
formData
|
formData
|
||||||
);
|
);
|
||||||
return data;
|
return data;
|
||||||
@@ -24,7 +24,7 @@ export const multipleUpload = async (
|
|||||||
formData.append("files", file);
|
formData.append("files", file);
|
||||||
});
|
});
|
||||||
const { data } = await axios.post<MultipleUploadResponse>(
|
const { data } = await axios.post<MultipleUploadResponse>(
|
||||||
`/uploader/multi-file`,
|
`/admin/multi-file`,
|
||||||
formData
|
formData
|
||||||
);
|
);
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
Reference in New Issue
Block a user