forked from hazza/dspace-angular
24 lines
1010 B
TypeScript
24 lines
1010 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot([
|
|
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
|
{ path: 'home', loadChildren: './+home-page/home-page.module#HomePageModule' },
|
|
{ path: 'communities', loadChildren: './+community-page/community-page.module#CommunityPageModule' },
|
|
{ path: 'collections', loadChildren: './+collection-page/collection-page.module#CollectionPageModule' },
|
|
{ path: 'items', loadChildren: './+item-page/item-page.module#ItemPageModule' },
|
|
{ path: 'search', loadChildren: './+search-page/search-page.module#SearchPageModule' },
|
|
{ path: 'admin', loadChildren: './+admin-page/admin-page.module#AdminPageModule' },
|
|
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent },
|
|
])
|
|
],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule {
|
|
|
|
}
|