Ignore:
Timestamp:
10/30/20 02:04:06 (2 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
1f4846d
Parents:
6f203af
Message:

Auth guards and services, refactored components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/app.module.ts

    r6f203af r993189e  
    2525import { EditPharmacyHeadDialogComponent } from './dialogs/edit-pharmacy-head-dialog/edit-pharmacy-head-dialog.component';
    2626import { PharmacyHeadDialogComponent } from './nav-menu/dialogs/pharmacy-head-dialog/pharmacy-head-dialog.component';
     27import { AuthGuard } from './shared/auth.guard';
    2728
    2829@NgModule({
     
    5354      { path: 'koronavirus', component: KoronaComponent },
    5455      { path: 'admin', component: AdminComponent },
    55       { path: 'dashboard', component: DashboardComponent },
    56       { path: 'dashboard/:token', component: DashboardComponent },
     56      { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] },
    5757      { path: 'login', component: LoginComponent }
    5858    ]),
Note: See TracChangeset for help on using the changeset viewer.