Created
August 6, 2016 17:57
-
-
Save qdouble/4e9232a7bba7068bf42c5a80e454b0f3 to your computer and use it in GitHub Desktop.
Route Config
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
import { RouterConfig } from '@angular/router'; | |
import { | |
AffiliatesRoutes, | |
ConfigRoutes, | |
CreditsRoutes, | |
Dashboard, | |
OffersRoutes, | |
PrizesRoutes, | |
SitesRoutes, | |
StatisticsRoutes, | |
SupportRoutes, | |
UsersRoutes | |
} from './pages'; | |
export const routes: RouterConfig = [ | |
{ | |
path: '', | |
redirectTo: 'dashboard', | |
pathMatch: 'full' | |
}, | |
{ | |
path: 'dashboard', | |
component: Dashboard | |
}, | |
...AffiliatesRoutes, | |
...ConfigRoutes, | |
...CreditsRoutes, | |
...OffersRoutes, | |
...PrizesRoutes, | |
...SitesRoutes, | |
...StatisticsRoutes, | |
...SupportRoutes, | |
...UsersRoutes, | |
{ | |
path: '**', | |
redirectTo: 'dashboard' | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment