test fix topping route

This commit is contained in:
pakintada@gmail.com 2024-02-08 17:09:36 +07:00
parent adefe31090
commit 0d24907e9f
2 changed files with 1 additions and 9 deletions

View file

@ -73,7 +73,7 @@ const loginGuard: CanActivateFn = (route: ActivatedRouteSnapshot) => {
return true;
}
// redirect to redirectUrl query param
console.log(route.queryParams['redirectUrl']);
console.log("redirectURL", route.queryParams['redirectUrl']);
return router.createUrlTree([
router.parseUrl(route.queryParams['redirectUrl'] ?? 'departments'),
]);

View file

@ -67,10 +67,6 @@ export class ToppingService {
return this._httpClient.get<ToppingGroup[]>(
`${environment.api}/toppings/groups/${country}/${filename}`,
{
params:{
country: country,
filename: filename
},
withCredentials: true,
}
);
@ -87,10 +83,6 @@ export class ToppingService {
return this._httpClient.get<ToppingList[]>(
`${environment.api}/toppings/lists/${country}/${filename}`,
{
params:{
country: country,
filename: filename
},
withCredentials: true,
}
);