Skip to content

Commit

Permalink
feat: remove dummy component
Browse files Browse the repository at this point in the history
  • Loading branch information
JSPRH committed Feb 21, 2024
1 parent 62c89d4 commit 8c3b008
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
3 changes: 1 addition & 2 deletions apps/spa/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ import {

import { environment } from '../environments/environment';
import { AppComponent } from './component/app.component';
import { ProtectedComponent } from './component/protected.component';
import routes from './routes';

registerLocaleData(de);

@NgModule({
declarations: [AppComponent, ProtectedComponent],
declarations: [AppComponent],
imports: [
BrowserModule,
BrowserAnimationsModule,
Expand Down
12 changes: 0 additions & 12 deletions apps/spa/src/app/component/protected.component.ts

This file was deleted.

11 changes: 2 additions & 9 deletions apps/spa/src/app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,18 @@ import { Routes } from '@angular/router';
import { authGuard } from '@kordis/spa/auth';
import { DashboardComponent } from '@kordis/spa/dashboard';

import { ProtectedComponent } from './component/protected.component';

const routes: Routes = [
{
path: '',
redirectTo: 'protected',
redirectTo: 'dashbaord',
pathMatch: 'full',
},
{
path: 'protected',
component: ProtectedComponent,
canActivate: [authGuard],
},
{
path: 'dashboard',
component: DashboardComponent,
canActivate: [authGuard],
},
{ path: '**', redirectTo: 'protected' },
{ path: '**', redirectTo: 'dashboard' },
];

export default routes;

0 comments on commit 8c3b008

Please sign in to comment.