mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-26 21:54:24 -05:00
nuxt init
This commit is contained in:
14
frontend.old/src/api/upload.js
Normal file
14
frontend.old/src/api/upload.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { apiReq } from "./api-utils";
|
||||
import i18n from "@/i18n.js";
|
||||
|
||||
export const utilsAPI = {
|
||||
// import { api } from "@/api";
|
||||
uploadFile(url, fileObject) {
|
||||
return apiReq.post(
|
||||
url,
|
||||
fileObject,
|
||||
() => i18n.t("general.failure-uploading-file"),
|
||||
() => i18n.t("general.file-uploaded")
|
||||
);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user