1
|
import { NgModule } from '@angular/core';
|
2
|
import { Routes, RouterModule } from '@angular/router';
|
3
|
import { HomeComponent } from './components/pages/home/home.component';
|
4
|
import { SearchComponent } from './components/pages/search/search.component';
|
5
|
import { BrowseComponent } from './components/pages/browse/browse.component';
|
6
|
import { UploadComponent } from './components/pages/upload/upload.component';
|
7
|
import { HelpComponent } from './components/pages/help/help.component';
|
8
|
|
9
|
|
10
|
const routes: Routes = [
|
11
|
{ path: '', component: HomeComponent },
|
12
|
{ path: 'search', component: SearchComponent },
|
13
|
{ path: 'browse', component: BrowseComponent },
|
14
|
{ path: 'upload', component: UploadComponent },
|
15
|
{ path: 'help', component: HelpComponent },
|
16
|
];
|
17
|
|
18
|
@NgModule({
|
19
|
imports: [RouterModule.forRoot(routes)],
|
20
|
exports: [RouterModule]
|
21
|
})
|
22
|
export class AppRoutingModule { }
|