diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index c430c9f..e39bdb6 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -5,7 +5,6 @@ import { P404Component } from './pages/404.component'; import { P500Component } from './pages/500.component'; export const routes: Routes = [ - { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: '404', component: P404Component }, { path: '500', component: P500Component }, { path: '**', redirectTo: '/404' }, diff --git a/src/app/dashboard/dashboard.routing.ts b/src/app/dashboard/dashboard.routing.ts index 792ac39..dcd9bfa 100644 --- a/src/app/dashboard/dashboard.routing.ts +++ b/src/app/dashboard/dashboard.routing.ts @@ -1,5 +1,6 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; + import { AuthGuard } from '../_guards/auth.guard'; import { DashboardComponent } from './dashboard.component'; @@ -10,6 +11,7 @@ import { AddDataComponent } from './add-data.component'; // Using child path to allow for FullLayout theming const routes: Routes = [ + { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: '', component: FullLayoutComponent,