currently everything working

This commit is contained in:
vabene1111
2021-01-12 19:50:21 +01:00
parent 7b936ec4fd
commit 816ced83b5
6 changed files with 31 additions and 17 deletions

12
vue/src/utils/django.js Normal file
View File

@@ -0,0 +1,12 @@
import axios from "axios";
import {makeToast} from "@/utils/utils";
export function apiLoadRecipe(recipe_id) {
return axios.get(`/api/recipe/${recipe_id}`).then((response) => {
return response.data
}).catch((err) => {
console.log(err)
makeToast('Error', 'There was an error loading a resource!', 'danger')
})
}