test fix topping route
This commit is contained in:
parent
adefe31090
commit
0d24907e9f
2 changed files with 1 additions and 9 deletions
|
|
@ -73,7 +73,7 @@ const loginGuard: CanActivateFn = (route: ActivatedRouteSnapshot) => {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// redirect to redirectUrl query param
|
// redirect to redirectUrl query param
|
||||||
console.log(route.queryParams['redirectUrl']);
|
console.log("redirectURL", route.queryParams['redirectUrl']);
|
||||||
return router.createUrlTree([
|
return router.createUrlTree([
|
||||||
router.parseUrl(route.queryParams['redirectUrl'] ?? 'departments'),
|
router.parseUrl(route.queryParams['redirectUrl'] ?? 'departments'),
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,6 @@ export class ToppingService {
|
||||||
return this._httpClient.get<ToppingGroup[]>(
|
return this._httpClient.get<ToppingGroup[]>(
|
||||||
`${environment.api}/toppings/groups/${country}/${filename}`,
|
`${environment.api}/toppings/groups/${country}/${filename}`,
|
||||||
{
|
{
|
||||||
params:{
|
|
||||||
country: country,
|
|
||||||
filename: filename
|
|
||||||
},
|
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -87,10 +83,6 @@ export class ToppingService {
|
||||||
return this._httpClient.get<ToppingList[]>(
|
return this._httpClient.get<ToppingList[]>(
|
||||||
`${environment.api}/toppings/lists/${country}/${filename}`,
|
`${environment.api}/toppings/lists/${country}/${filename}`,
|
||||||
{
|
{
|
||||||
params:{
|
|
||||||
country: country,
|
|
||||||
filename: filename
|
|
||||||
},
|
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue