2024-01-29 07:27:26 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2024-02-13 17:34:08 +01:00
|
|
|
import { LinksComponent } from './links/links.component';
|
2025-03-12 11:16:31 +01:00
|
|
|
import { TasmotaControlComponent } from './tasmota-control/tasmota-control.component';
|
2024-01-29 07:27:26 +01:00
|
|
|
|
2024-01-29 19:42:34 +01:00
|
|
|
const routes: Routes = [
|
2024-02-13 17:34:08 +01:00
|
|
|
{ path: '', redirectTo: '/list-links', pathMatch: 'full'},
|
2025-03-12 11:16:31 +01:00
|
|
|
{ path: 'list-links', component:LinksComponent },
|
|
|
|
|
{ path: 'steckdosen', component:TasmotaControlComponent}
|
2024-01-29 19:42:34 +01:00
|
|
|
];
|
2024-01-29 07:27:26 +01:00
|
|
|
|
|
|
|
|
@NgModule({
|
2024-02-13 17:34:08 +01:00
|
|
|
imports: [RouterModule.forRoot(routes, {useHash: true})],
|
2024-01-29 07:27:26 +01:00
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|
|
|
|
|
export class AppRoutingModule { }
|