-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-routing.module.ts
More file actions
28 lines (25 loc) · 1.09 KB
/
admin-routing.module.ts
File metadata and controls
28 lines (25 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppointmentComponent } from '../components/appointment/appointment.component';
import { CheckAppointmentComponent } from '../components/check-appoitment/check-appointment.component';
import { HomeComponent } from '../components/home/home.component';
import { LabTestsComponent } from '../components/lab-tests/lab-tests.component';
import { LoginComponent } from '../components/login/login.component';
import { SignupComponent } from '../components/signup/signup.component';
import { AuthGuard } from '../guard/auth.guard';
const routes: Routes = [
{ path: '', component: HomeComponent },
{ path: 'signup', component: SignupComponent },
{ path: 'login', component: LoginComponent },
{ path: 'labtests', component: LabTestsComponent, canActivate: [AuthGuard] },
{
path: 'appointment-check',
component: CheckAppointmentComponent,
canActivate: [AuthGuard],
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class AdminRoutingModule {}