Ignore:
Timestamp:
12/19/21 19:39:00 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
bdd6491
Parents:
1ad8e64
Message:

spring security 2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/app.module.ts

    r1ad8e64 r84d0fbb  
    44import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
    55import { FormsModule, ReactiveFormsModule } from '@angular/forms';
    6 import { HttpClient, HttpClientModule } from '@angular/common/http';
     6import { HttpClient, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
    77import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
    88import { CategoryService } from './_services/cateogry.service';
     
    4747import { RegisterComponent } from './homepage/register/register.component';
    4848import { LoginComponent } from './homepage/login/login.component';
     49import { AuthGuard } from './auth/auth.guard';
     50import { AuthInterceptor } from './auth/auth.interceptor';
    4951
    5052@NgModule({
     
    109111    PlannerService,
    110112    {
    111       provide: MatDialogRef,
    112       useValue: {}
     113      provide: MatDialogRef,
     114      useValue: {},
     115   
     116    },
     117    {
     118      provide: HTTP_INTERCEPTORS,
     119      useClass: AuthInterceptor,
     120      multi: true
    113121    },
    114122    DialogService,
    115123    MessageService,
    116     ConfirmationService
    117 
     124    ConfirmationService,
     125    AuthGuard
    118126  ],
    119127 
Note: See TracChangeset for help on using the changeset viewer.