Changeset 1f4846d for Farmatiko/ClientApp/src/app/app.module.ts
- Timestamp:
- 11/01/20 00:55:08 (3 years ago)
- Branches:
- master
- Children:
- d23bf72
- Parents:
- 993189e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/app.module.ts
r993189e r1f4846d 7 7 import { ReactiveFormsModule } from '@angular/forms'; 8 8 9 import { DataService } from './shared/data.service';9 import { CoreModule } from './shared/core.module'; 10 10 11 import { AuthGuard } from './shared/guards/auth.guard'; 12 import { DataService } from './shared/services/data.service'; 11 13 import { AppComponent } from './app.component'; 12 14 import { NavMenuComponent } from './nav-menu/nav-menu.component'; … … 25 27 import { EditPharmacyHeadDialogComponent } from './dialogs/edit-pharmacy-head-dialog/edit-pharmacy-head-dialog.component'; 26 28 import { PharmacyHeadDialogComponent } from './nav-menu/dialogs/pharmacy-head-dialog/pharmacy-head-dialog.component'; 27 import { AuthGuard } from './shared/auth.guard';28 29 29 30 @NgModule({ … … 53 54 { path: 'mapa', component: CounterComponent }, 54 55 { path: 'koronavirus', component: KoronaComponent }, 55 { path: 'admin', component: AdminComponent },56 { path: 'admin', component: AdminComponent, canActivate: [AuthGuard] }, 56 57 { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] }, 57 58 { path: 'login', component: LoginComponent } … … 59 60 BrowserAnimationsModule, 60 61 MaterialModule, 61 ReactiveFormsModule 62 ReactiveFormsModule, 63 CoreModule 62 64 ], 63 65 providers: [
Note:
See TracChangeset
for help on using the changeset viewer.