Skip to content

Commit

Permalink
fix(auth): add auth guard to pages, closes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Jun 20, 2023
1 parent 2cf7cae commit 2f35dcb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,45 @@ const routes: Routes = [
},
{
path: 'explore',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/explore/explore.module').then((m) => m.ExplorePageModule),
},
{
path: 'travel',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/travel/travel.module').then((m) => m.TravelPageModule),
},
{
path: 'town',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/town/town.module').then((m) => m.TownPageModule),
},
{
path: 'me',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/me/me.module').then((m) => m.MePageModule),
},
{
path: 'options',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/options/options.module').then((m) => m.OptionsPageModule),
},
{
path: 'inventory',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/inventory/inventory.module').then(
(m) => m.InventoryPageModule,
),
},
{
path: 'equipment',
canActivate: [AuthGuard],
loadChildren: () =>
import('./pages/equipment/equipment.module').then(
(m) => m.EquipmentPageModule,
Expand Down

0 comments on commit 2f35dcb

Please sign in to comment.