add edit json v1 WIP, testing
This commit is contained in:
parent
e5eee656d5
commit
ea92145350
11 changed files with 216 additions and 67 deletions
|
|
@ -80,4 +80,20 @@ export class RecipeService {
|
|||
{ withCredentials: true, responseType: 'json' }
|
||||
);
|
||||
}
|
||||
|
||||
editChanges(version: string, change: any){
|
||||
console.log("target version = ", version);
|
||||
console.log("change in edit: ",change.value)
|
||||
return this._httpClient.post<{
|
||||
status: string
|
||||
}>(
|
||||
environment.api + ('/recipes/edit/'+version),
|
||||
change.value,
|
||||
{ withCredentials: true, responseType: 'json', }
|
||||
).subscribe({
|
||||
next(value) {
|
||||
console.log(value, change.value)
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue