EMS/src/app/app.routes.ts
Dominik Säume f6664e1d8a
All checks were successful
Quality Check / Linting (push) Successful in 21s
Feature: Employee Edit - Layout, Read, Style
2025-01-09 23:33:35 +01:00

11 lines
604 B
TypeScript

import { Routes } from '@angular/router';
import { DashboardComponent } from '@app/views/dashboard/dashboard.component';
import { AuthService } from '@core/auth/auth.service';
import { EmployeeDetailComponent } from './views/employee-detail/employee-detail.component';
export const routes: Routes = [
{ path: '', component: DashboardComponent, title: 'Home' },
{ path: 'employee/new', component: EmployeeDetailComponent, title: 'New Employee', canActivate: [AuthService] },
{ path: 'employee/:id', component: EmployeeDetailComponent, title: 'Edit Employee', canActivate: [AuthService] }
];