Skip to content

Commit 514338f

Browse files
author
Ankur Srivastava
committed
fixed a route, redirect to login, rather than home
1 parent 223f9fd commit 514338f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

front/src/app/utils/notfound/notfound.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ActivatedRoute, Router } from '@angular/router';
1111
<p>The page you requested could not be found, either contact your webmaster</p>
1212
<p> Use your browsers <b>Back</b> button to go back</p>
1313
<p><b>Or you could just press this neat little button:</b></p>
14-
<a (click)="redirectToLogin()" class="btn btn-large btn-info"> Take Me Home</a>
14+
<a (click)="redirectToLogin()" class="btn btn-large btn-info"> Take me to login page</a>
1515
</div>
1616
<br />
1717
<!-- By ConnerT HTML & CSS Enthusiast -->
@@ -24,6 +24,6 @@ import { ActivatedRoute, Router } from '@angular/router';
2424
export class NotFoundComponent {
2525
constructor(private router: Router) { }
2626
public redirectToLogin() {
27-
this.router.navigate(['/home']);
27+
this.router.navigate(['/login']);
2828
}
2929
}

front/src/app/webservices/webservices.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class WebService {
88
constructor(private authService: AuthenticationService) { }
99

1010
public getDataFromBackend() {
11-
return this.authService.postResource('', '/api/getdata');
11+
return this.authService.postResource('', '/api/protected');
1212
}
1313

1414
public isAuthenticated() {

0 commit comments

Comments
 (0)