change to query param

This commit is contained in:
pakintada@gmail.com 2024-02-09 08:54:43 +07:00
parent e9603026bf
commit 8f09e50172
2 changed files with 30 additions and 8 deletions

View file

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