Merge branch 'main' of https://github.com/Poomipat-Ch/taobin_recipe_manager
This commit is contained in:
commit
96f341aa28
26 changed files with 1068 additions and 664 deletions
|
|
@ -153,7 +153,7 @@ export class RecipeService {
|
|||
|
||||
getRecipeCountries(): Observable<string[]> {
|
||||
return this._httpClient
|
||||
.get<string[]>(environment.api + '/recipes/versions', {
|
||||
.get<string[]>(environment.api + '/recipes/countries', {
|
||||
withCredentials: true,
|
||||
responseType: 'json',
|
||||
})
|
||||
|
|
@ -162,7 +162,7 @@ export class RecipeService {
|
|||
|
||||
getRecipeFiles(country: string): Observable<string[]> {
|
||||
return this._httpClient
|
||||
.get<string[]>(environment.api + '/recipes/versions/' + country, {
|
||||
.get<string[]>(environment.api + '/recipes/' + country + '/versions', {
|
||||
withCredentials: true,
|
||||
responseType: 'json',
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue