-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
561b681
commit 4bd12d2
Showing
2 changed files
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import {provideRouter, RouterConfig} from '@angular/router'; | ||
import {Routes} from '@angular/router'; | ||
|
||
import {BuildComponent} from './build/build.component'; | ||
import {ChampionsComponent} from './champions/champions.component'; | ||
import {FeaturesComponent} from './features/features.component'; | ||
import {RegionsComponent} from './region/region.component'; | ||
|
||
export const routes: RouterConfig = [ | ||
export const ROUTES: Routes = [ | ||
{path: ':region/:champion/summoner/:summoner', component: BuildComponent}, | ||
{path: ':region/:champion/build', component: BuildComponent}, | ||
{path: ':region/:champion', component: FeaturesComponent}, | ||
{path: ':region', component: ChampionsComponent}, {path: '', component: RegionsComponent} | ||
]; | ||
|
||
export const APP_ROUTER_PROVIDERS = [provideRouter(routes)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters