Add User route and Refactor code
This commit is contained in:
parent
519749fd3a
commit
b311a41dc7
24 changed files with 902 additions and 489 deletions
|
|
@ -147,7 +147,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',
|
||||
})
|
||||
|
|
@ -156,7 +156,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