Merge branch '6-ajouter-la-page-de-l-inventaire' into 'master'

Inventaire

Closes #6

See merge request color-recipes-explorer/frontend!10
This commit is contained in:
William Nolin 2021-03-20 17:58:29 +00:00
commit 20502bbde9
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,10 @@ export class RecipeService {
return this.api.put<void>('/recipe/public', body)
}
delete(id: number): Observable<void> {
return this.api.delete<void>(`/recipe/${id}`)
}
deductMixFromQuantities(mixId: number, originalQuantity: number, currentQuantity: number): Observable<MaterialQuantity[]> {
return this.deductMix(mixId, currentQuantity / originalQuantity)
}