You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
847 B

import { Routes } from '@angular/router';
import { AuthGuard } from './core/guards/auth.guard';
export const routes: Routes = [
{
path: 'storage',
loadComponent: () => import('./features/pokemon/pokemon-grid/pokemon-grid.component')
.then(m => m.PokemonGridComponent)
},
{
path: 'storage-carousel', // Add new route
loadComponent: () => import('./features/pokemon/pokemon-carousel/pokemon-carousel.component')
.then(m => m.PokemonCarouselComponent)
},
{
path: 'auth',
loadChildren: () => import('./features/auth/auth.routes')
.then(m => m.AUTH_ROUTES)
},
{
path: 'efficiency',
loadComponent: () => import('./features/plan/plan.component')
.then(m => m.PlanComponent),
canActivate: [AuthGuard]
},
{
path: '',
redirectTo: 'storage',
pathMatch: 'full'
}
];