mirror of https://gitlab.com/openlp/web-remote.git
28 lines
1.2 KiB
TypeScript
28 lines
1.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { ServiceComponent } from './components/service/service.component';
|
|
import { AlertComponent } from './components/alert/alert.component';
|
|
import { SearchComponent } from './components/search/search.component';
|
|
import { SlidesComponent } from './components/slides/slides.component';
|
|
import { ChordViewComponent } from './components/chord-view/chord-view.component';
|
|
import { MainViewComponent } from './components/main-view/main-view.component';
|
|
import { StageViewComponent } from './components/stage-view/stage-view.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: '/service', pathMatch: 'full' },
|
|
{ path: 'service', component: ServiceComponent },
|
|
{ path: 'slides', component: SlidesComponent },
|
|
{ path: 'alerts', component: AlertComponent },
|
|
{ path: 'search', component: SearchComponent },
|
|
{ path: 'chords', component: ChordViewComponent },
|
|
{ path: 'main', component: MainViewComponent },
|
|
{ path: 'stage', component: StageViewComponent }
|
|
];
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, {useHash: true})],
|
|
exports: [RouterModule]
|
|
})
|
|
|
|
export class AppRoutingModule { }
|