add changes diffing modal & silence some logs

This commit is contained in:
pakintada@gmail.com 2024-03-01 00:22:28 +07:00
parent 148488e2c4
commit da353cec84
22 changed files with 1770 additions and 120 deletions

View file

@ -309,4 +309,19 @@ export class RecipeService {
{ withCredentials: true, responseType: 'json' }
);
}
async sortRecipe(
country: string,
filename: string,
sortKey: string,
): Promise<Observable<any>> {
return this._httpClient.post<any>(
environment.api + '/recipes/sort/' + country + '/' + filename ,
JSON.stringify({
"sortKey": sortKey
}),
{ withCredentials: true, responseType: 'json' }
);
}
}