Skip to content

Commit 7d25c67

Browse files
committed
Fixed URLs
1 parent b0075ca commit 7d25c67

5 files changed

Lines changed: 8 additions & 10 deletions

File tree

angular.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@
7474
},
7575
"serve": {
7676
"builder": "@angular-devkit/build-angular:dev-server",
77-
"options": {
78-
"proxyConfig": "./proxy.conf.json"
79-
},
8077
"configurations": {
8178
"production": {
8279
"browserTarget": "angular-http-basic-auth-example:build:production"

proxy.conf.json

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Component } from '@angular/core';
2+
import { Router } from '@angular/router';
23
import { AuthenticationService } from '@app/authentication/service/authentication.service';
34

45
@Component({
@@ -8,10 +9,14 @@ import { AuthenticationService } from '@app/authentication/service/authenticatio
89
})
910
export class LogoutButtonComponent {
1011

11-
constructor(private authenticationService: AuthenticationService) { }
12+
constructor(
13+
private authenticationService: AuthenticationService,
14+
private router: Router
15+
) { }
1216

13-
logout(){
17+
logout() {
1418
this.authenticationService.logout();
19+
this.router.navigate(['/login']);
1520
}
1621

1722
}

src/app/navigation/navigation-menu/navigation-menu.component.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { LayoutModule } from '@angular/cdk/layout';
21
import { ComponentFixture, TestBed } from '@angular/core/testing';
32

43
import { RouterTestingModule } from '@angular/router/testing';
@@ -12,7 +11,6 @@ describe('NavigationMenuComponent', () => {
1211
await TestBed.configureTestingModule({
1312
declarations: [NavigationMenuComponent],
1413
imports: [
15-
LayoutModule,
1614
RouterTestingModule
1715
]
1816
}).compileComponents();

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
export const environment = {
66
production: false,
7-
apiUrl: '/api'
7+
apiUrl: 'http://localhost:8080'
88
};
99

1010
/*

0 commit comments

Comments
 (0)