Skip to content

Commit

Permalink
fix: upload delete route
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNono committed Aug 31, 2024
1 parent 4609387 commit dfdb853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const uploadFile = async (file: File, name: string, path: string) => {
};

export const deleteFile = async (path: string) => {
const response = await uploads.delete('admin/delete/' + encodeURIComponent(path));
const response = await uploads.delete('admin/upload/' + encodeURIComponent(path));

if (response.status === 0) {
toast.success(response.message);
Expand Down

0 comments on commit dfdb853

Please sign in to comment.