This commit is contained in:
Iliyan Angelov
2025-11-16 02:44:17 +02:00
parent 190f478327
commit c15a7bdbde
438 changed files with 85094 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Routes } from '@angular/router';
import { LoginComponent } from './pages/login/login.component';
import { AdminComponent } from './pages/admin/admin.component';
import { DoctorComponent } from './pages/doctor/doctor.component';
import { PatientComponent } from './pages/patient/patient.component';
import { DoctorRegisterComponent } from './pages/register/doctor/doctor-register.component';
import { PatientRegisterComponent } from './pages/register/patient/patient-register.component';
import { ForgotPasswordComponent } from './pages/forgot-password/forgot-password.component';
import { ResetPasswordComponent } from './pages/reset-password/reset-password.component';
import { authGuard } from './guards/auth.guard';
export const routes: Routes = [
{ path: 'login', component: LoginComponent },
{ path: 'forgot-password', component: ForgotPasswordComponent },
{ path: 'reset-password', component: ResetPasswordComponent },
{ path: 'register/doctor', component: DoctorRegisterComponent },
{ path: 'register/patient', component: PatientRegisterComponent },
{ path: 'admin', component: AdminComponent, canActivate: [authGuard] },
{ path: 'doctor', component: DoctorComponent, canActivate: [authGuard] },
{ path: 'patient', component: PatientComponent, canActivate: [authGuard] },
{ path: '', pathMatch: 'full', redirectTo: 'login' },
{ path: '**', redirectTo: 'login' },
];