diff --git a/apps/spa/src/app/app.module.ts b/apps/spa/src/app/app.module.ts index 1ecd875a6..2121dfa2c 100644 --- a/apps/spa/src/app/app.module.ts +++ b/apps/spa/src/app/app.module.ts @@ -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, diff --git a/apps/spa/src/app/component/protected.component.ts b/apps/spa/src/app/component/protected.component.ts deleted file mode 100644 index f2edb8b2b..000000000 --- a/apps/spa/src/app/component/protected.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ChangeDetectionStrategy, Component } from '@angular/core'; - -import { TraceComponent } from '@kordis/spa/observability'; - -// placeholder until we have a feature structure -@Component({ - selector: 'kordis-protected', - template: ` ganz geheim `, - changeDetection: ChangeDetectionStrategy.OnPush, -}) -@TraceComponent() -export class ProtectedComponent {} diff --git a/apps/spa/src/app/routes.ts b/apps/spa/src/app/routes.ts index ec030f149..3eb44d9e1 100644 --- a/apps/spa/src/app/routes.ts +++ b/apps/spa/src/app/routes.ts @@ -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;