Fixed frontend

This commit is contained in:
Sven Heidemann 2022-12-17 15:26:48 +01:00
parent f21b4f9881
commit b25b75e382
2 changed files with 3 additions and 18 deletions

View File

@ -1,13 +0,0 @@
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { MembersComponent } from "./component/members/members.component";
const routes: Routes = [
{ path: '', component: MembersComponent },
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class MembersRoutingModule { }

View File

@ -1,11 +1,9 @@
import { NgModule } from '@angular/core'; import { NgModule } from "@angular/core";
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from "@angular/router";
import { ServerDashboardComponent } from './server-dashboard/server-dashboard.component'; import { ServerDashboardComponent } from "./server-dashboard/server-dashboard.component";
import { AuthGuard } from "../../shared/guards/auth/auth.guard";
const routes: Routes = [ const routes: Routes = [
{ path: '', component: ServerDashboardComponent }, { path: '', component: ServerDashboardComponent },
{ path: 'members', loadChildren: () => import('./members/members.module').then(m => m.MembersModule), canActivate: [AuthGuard] },
]; ];
@NgModule({ @NgModule({