26 lines
1.2 KiB
TypeScript
26 lines
1.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { InfoComponent } from './info/info.component';
|
|
import { ProtocolsComponent } from './protocols/protocols.component';
|
|
import { WfHistoryComponent } from './wf-history/wf-history.component';
|
|
import { ResourcesComponent } from './resources/resources.component';
|
|
import { VocabulariesComponent, VocabularyEditorComponent } from './vocabularies/vocabularies.component';
|
|
import { ContextEditorComponent, ContextsComponent } from './contexts/contexts.component';
|
|
|
|
const routes: Routes = [
|
|
{ path:"info" , component:InfoComponent },
|
|
{ path:"resources/:type" , component:ResourcesComponent },
|
|
{ path:"adv_resources/context" , component:ContextsComponent },
|
|
{ path:"adv_resources/vocabulary", component:VocabulariesComponent },
|
|
{ path:"adv_resources/protocol" , component:ProtocolsComponent },
|
|
{ path:"wf_history" , component:WfHistoryComponent },
|
|
{ path:"ctx_editor" , component:ContextEditorComponent },
|
|
{ path:"voc_editor" , component:VocabularyEditorComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|