mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-26 05:34:21 -05:00
* automated docs update * recipe rating component * recipe partial updates - closes #25 * use Vue.delete to update store * format * arrow functions * fix tests * format * initial context menu * localize * add confirmation dialog * context menu * fix bare exception * update line length * format all file with prettier * update changelog * download as json * update python dependencies * update javascript dependencies Co-authored-by: hay-kot <hay-kot@pm.me>
17 lines
359 B
JavaScript
17 lines
359 B
JavaScript
import { apiReq } from "./api-utils";
|
|
import i18n from "@/i18n.js";
|
|
|
|
export const utilsAPI = {
|
|
// import { api } from "@/api";
|
|
uploadFile(url, fileObject) {
|
|
console.log("API Called");
|
|
|
|
return apiReq.post(
|
|
url,
|
|
fileObject,
|
|
() => i18n.t("general.failure-uploading-file"),
|
|
() => i18n.t("general.file-uploaded")
|
|
);
|
|
},
|
|
};
|