change to query param
This commit is contained in:
parent
e9603026bf
commit
8f09e50172
2 changed files with 30 additions and 8 deletions
|
|
@ -65,8 +65,12 @@ export class ToppingService {
|
|||
country = getCountryMapSwitcher(asyncCountry);
|
||||
|
||||
return this._httpClient.get<ToppingGroup[]>(
|
||||
`${environment.api}/toppings/groups/${country}/${filename}`,
|
||||
`${environment.api}/toppings/groups`,
|
||||
{
|
||||
params: {
|
||||
country: country,
|
||||
filename: filename,
|
||||
},
|
||||
withCredentials: true,
|
||||
}
|
||||
);
|
||||
|
|
@ -81,8 +85,12 @@ export class ToppingService {
|
|||
country = getCountryMapSwitcher(asyncCountry);
|
||||
|
||||
return this._httpClient.get<ToppingList[]>(
|
||||
`${environment.api}/toppings/lists/${country}/${filename}`,
|
||||
`${environment.api}/toppings/lists`,
|
||||
{
|
||||
params: {
|
||||
country: country,
|
||||
filename: filename,
|
||||
},
|
||||
withCredentials: true,
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue