Skip to content
Snippets Groups Projects
Select Git revision
  • d5eb2a6d4646800c7cc7753d7ee8549cedfde5fd
  • master default
  • dja
  • dja_various_fixes
  • dja_differentiate_same_user_connections
  • dja_fix_bugs
  • dja_guest
  • dja_guests
  • dja_sign_out_without_race_conditions
  • dja_subgroups
  • dua_subgroups
  • dja_groups_2
  • dja_groups
  • dja_heroku_11_7_2024
  • dja_share_files
  • dja_execute_files_aux_2
  • dja_execute_files_aux
  • dja_execute_files
  • dja_files_page
  • dja-create-main-button
  • feature/aristas-metadata-vertices
  • v2.0
  • v1.0
23 results

app-routing.module.ts

Blame
  • app-routing.module.ts 628 B
    import { NgModule } from '@angular/core';
    import { Routes, RouterModule } from '@angular/router';
    
    import { AuthGuard } from './shared/guards/auth.guard';
    
    const routes: Routes = [
        { path: '', loadChildren: './layout/layout.module#LayoutModule', canActivate: [AuthGuard] },
        { path: 'login', loadChildren: './login/login.module#LoginModule' },
        { path: 'not-found', loadChildren: './not-found/not-found.module#NotFoundModule' },
        { path: '**', redirectTo: 'not-found' }
    ];
    
    @NgModule({
        imports: [RouterModule.forRoot(routes, { useHash: true })],
        exports: [RouterModule]
    })
    export class AppRoutingModule { }