diff --git a/frontend/src/app/pages/home-root/home-root.component.html b/frontend/src/app/pages/home-root/home-root.component.html deleted file mode 100644 index e69de29..0000000 diff --git a/frontend/src/app/pages/home-root/home-root.component.scss b/frontend/src/app/pages/home-root/home-root.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/frontend/src/app/pages/home-root/home-root.component.ts b/frontend/src/app/pages/home-root/home-root.component.ts deleted file mode 100644 index 7b5328d..0000000 --- a/frontend/src/app/pages/home-root/home-root.component.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { HttpErrorResponse } from '@angular/common/http'; -import { Component, OnInit } from '@angular/core'; -import { Router } from '@angular/router'; - -import { SuccessDtoApiModel } from '../../api'; -import { AuthService } from '../../shared/service'; - -@Component({ - selector: 'app-foo', - standalone: true, - providers: [], - imports: [], - templateUrl: './home-root.component.html', - styleUrl: './home-root.component.scss', -}) -export class HomeComponent implements OnInit { - public constructor( - private readonly authService: AuthService, - private readonly router: Router - ) {} - - public ngOnInit(): void { - this.authService.status().subscribe( - (response: SuccessDtoApiModel) => { - if (response.success) { - this.router.navigate(['/dashboard']); - } - }, - (error: HttpErrorResponse) => { - if (error.status === 401) { - this.router.navigate(['welcome'], { - queryParams: { login: true }, - }); - } - } - ); - } -}