app-routing.module.ts 2.69 KB
Newer Older
cazenave's avatar
cazenave committed
1
2
3
4
5
6
7
8
9
10
11
12
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { UserComponent } from './user/user.component';
import { RepositoryComponent } from './repository/repository.component';
import { AccessapiComponent } from './accessapi/accessapi.component';
import { DatasetsComponent } from './datasets/datasets.component';
import { OntologieComponent } from './ontologie/ontologie.component';
import { PublishComponent } from './publish/publish.component';
import { SettingfdpComponent } from './settingfdp/settingfdp.component';
import { SettingsmartapiComponent } from './settingsmartapi/settingsmartapi.component';
import { RepositoryinfoComponent } from './repositoryinfo/repositoryinfo.component';
cazenave's avatar
cazenave committed
13
import { SwaggereditorComponent } from './swaggereditor/swaggereditor.component';
cazenave's avatar
cazenave committed
14
import { ElasticsearchComponent } from './elasticsearch/elasticsearch.component'
15
import { PublishApiComponent } from './publishapi/publishapi.component'
Administrator's avatar
Administrator committed
16
import { SearchComponent } from './search/search.component';
17
import { AccountLoginComponent } from './account/login/account.login.component';
cazenave's avatar
cazenave committed
18
import { AppComponent } from './app.component';
cazenave's avatar
cazenave committed
19
20
21
22
23
24
25
26
27
28
29
30


const routes: Routes = [
                        {path: 'login', component : LoginComponent},
                        {path: 'user', component : UserComponent},
                        {path: 'repository', component : RepositoryComponent},
                        {path: 'repositoryinfo', component : RepositoryinfoComponent},
                        {path: 'accessapi', component : AccessapiComponent},
                        {path: 'datasets', component : DatasetsComponent},
                        {path: 'ontologie', component : OntologieComponent},
                        {path: 'publish', component : PublishComponent},
                        {path: 'settingfdp', component : SettingfdpComponent},
31
                        {path: 'settingsmartharvester', component : SettingsmartapiComponent},
cazenave's avatar
cazenave committed
32
33
                        {path: 'swaggerapi', component : SwaggereditorComponent},
                        {path: 'elasticsearch', component : ElasticsearchComponent},
34
                        {path: 'publishapi', component : PublishApiComponent},
Administrator's avatar
Administrator committed
35
                        {path: 'simplesearch', component : SearchComponent},
36
37
                        {path: 'advancedsearch', component : SearchComponent},
                        {path: 'auth/login',component: AccountLoginComponent},
Paulo's avatar
Paulo committed
38
                       // {path: 'auth/admin', component: AdminComponent, canActivate: [AuthGuard] }
39
                        ]
cazenave's avatar
cazenave committed
40
41
42
43
44
@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }