Ignore:
Timestamp:
11/01/20 00:55:08 (2 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
d23bf72
Parents:
993189e
Message:

Jwt token auth interceptors, services and guards

File:
1 edited

Legend:

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

    r993189e r1f4846d  
    77import { ReactiveFormsModule } from '@angular/forms';
    88
    9 import { DataService } from './shared/data.service';
     9import { CoreModule } from './shared/core.module';
    1010
     11import { AuthGuard } from './shared/guards/auth.guard';
     12import { DataService } from './shared/services/data.service';
    1113import { AppComponent } from './app.component';
    1214import { NavMenuComponent } from './nav-menu/nav-menu.component';
     
    2527import { EditPharmacyHeadDialogComponent } from './dialogs/edit-pharmacy-head-dialog/edit-pharmacy-head-dialog.component';
    2628import { PharmacyHeadDialogComponent } from './nav-menu/dialogs/pharmacy-head-dialog/pharmacy-head-dialog.component';
    27 import { AuthGuard } from './shared/auth.guard';
    2829
    2930@NgModule({
     
    5354      { path: 'mapa', component: CounterComponent },
    5455      { path: 'koronavirus', component: KoronaComponent },
    55       { path: 'admin', component: AdminComponent },
     56      { path: 'admin', component: AdminComponent, canActivate: [AuthGuard] },
    5657      { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] },
    5758      { path: 'login', component: LoginComponent }
     
    5960    BrowserAnimationsModule,
    6061    MaterialModule,
    61     ReactiveFormsModule
     62    ReactiveFormsModule,
     63    CoreModule
    6264  ],
    6365  providers: [
Note: See TracChangeset for help on using the changeset viewer.