import { Routes , RouterModule } from '@angular/router' ; import { NewGameComponent , GameComponent } from '../components' ; import { AuthGuard , CategoriesResolver , TagsResolver } from 'shared-library/core/route-guards' ; export const gamePlayRoutes = [ { path : '' , pathMatch : 'full' , component : NewGameComponent , canActivate : [ AuthGuard ] , resolve : { 'categories' : CategoriesResolver , 'tags' : TagsResolver } } , { path : 'play-game-with-random-user' , pathMatch : 'full' , component : NewGameComponent , canActivate : [ AuthGuard ] , resolve : { 'categories' : CategoriesResolver , 'tags' : TagsResolver } } , { path : 'challenge/:userid' , pathMatch : 'full' , component : NewGameComponent , canActivate : [ AuthGuard ] , resolve : { 'categories' : CategoriesResolver , 'tags' : TagsResolver } } , { path : 'play-game-with-friend/:userid' , pathMatch : 'full' , component : NewGameComponent , canActivate : [ AuthGuard ] , resolve : { 'categories' : CategoriesResolver , 'tags' : TagsResolver } } , { path : 'game-options/:mode' , pathMatch : 'full' , component : NewGameComponent , canActivate : [ AuthGuard ] , resolve : { 'categories' : CategoriesResolver , 'tags' : TagsResolver } } , { path : ':gameid' , component : GameComponent , canActivate : [ AuthGuard ] , resolve : { 'categories' : CategoriesResolver , 'tags' : TagsResolver } } ] ;