import response view

This commit is contained in:
vabene1111
2021-03-18 20:00:13 +01:00
parent de9456e3d7
commit 8a051b531d
13 changed files with 181 additions and 6 deletions

View File

@ -18,6 +18,16 @@ export function apiLoadRecipe(recipe_id) {
})
}
export function apiLoadImportLog(id) {
let url = resolveDjangoUrl('api:importlog-detail', id)
return axios.get(url).then((response) => {
return response.data
}).catch((err) => {
handleError(err, 'There was an error loading a resource!', 'danger')
})
}
export function apiLogCooking(cook_log) {
return axios.post(resolveDjangoUrl('api:cooklog-list',), cook_log).then((response) => {