Add User route and Refactor code

This commit is contained in:
Kenta420 2023-12-06 20:21:25 +07:00
parent 519749fd3a
commit b311a41dc7
24 changed files with 902 additions and 489 deletions

View file

@ -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',
})