19 lines
719 B
TypeScript
19 lines
719 B
TypeScript
|
|
import { NgModule } from '@angular/core';
|
||
|
|
import { RouterModule, Routes } from '@angular/router';
|
||
|
|
import { LinksComponent } from './links/links.component';
|
||
|
|
import { TasmotaControlComponent } from './tasmota-control/tasmota-control.component';
|
||
|
|
import { PiholeControlComponent } from './pihole-control/pihole-control.component';
|
||
|
|
|
||
|
|
const routes: Routes = [
|
||
|
|
{ path: '', redirectTo: '/list-links', pathMatch: 'full'},
|
||
|
|
{ path: 'list-links', component:LinksComponent },
|
||
|
|
{ path: 'steckdosen', component:TasmotaControlComponent},
|
||
|
|
{ path: 'pihole', component:PiholeControlComponent}
|
||
|
|
];
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [RouterModule.forRoot(routes, {useHash: true})],
|
||
|
|
exports: [RouterModule]
|
||
|
|
})
|
||
|
|
export class AppRoutingModule { }
|