You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.4KB

  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { environment } from 'environments/environment';
  4. import { AboutComponent } from 'app/pages/about/about.component';
  5. import { NotFoundComponent } from 'app/pages/not-found/not-found.component';
  6. import { ResumeComponent } from './pages/resume/resume.component';
  7. import { GamesDashboardComponent } from './pages/games-dashboard/games-dashboard.component';
  8. import { ProjectDashboardComponent } from './pages/project-dashboard/project-dashboard.component';
  9. import { MagneticRecyclingQueenComponent } from './pages/game-dashboard/magnetic-recycling-queen/magnetic-recycling-queen.component';
  10. import { SaltyPiranhaComponent } from './pages/game-dashboard/salty-piranha/salty-piranha.component';
  11. import { LaserBluesComponent } from './pages/game-dashboard/laser-blues/laser-blues.component';
  12. import { WhatTheFungiComponent } from './pages/game-dashboard/what-the-fungi/what-the-fungi.component';
  13. import { ImpressumComponent } from './shared/impressum/impressum.component';
  14. const routes: Routes = [
  15. {
  16. path: 'resume',
  17. component: ResumeComponent,
  18. },
  19. {
  20. path: 'games',
  21. children: [
  22. {
  23. path: 'magnetic-recycling-queen',
  24. component: MagneticRecyclingQueenComponent
  25. },
  26. {
  27. path: 'salty-piranha',
  28. component: SaltyPiranhaComponent
  29. },
  30. {
  31. path: 'laser-blues',
  32. component: LaserBluesComponent
  33. },
  34. {
  35. path: 'what-the-fungi',
  36. component: WhatTheFungiComponent
  37. },
  38. {
  39. path: '',
  40. component: GamesDashboardComponent
  41. }
  42. ]
  43. },
  44. {
  45. path: 'projects',
  46. component: ProjectDashboardComponent,
  47. },
  48. {
  49. path: 'about',
  50. component: AboutComponent,
  51. },
  52. {
  53. path: 'legal',
  54. component: ImpressumComponent,
  55. },
  56. {
  57. path: '',
  58. redirectTo: 'about',
  59. pathMatch: 'full'
  60. },
  61. {
  62. path: '**',
  63. component: NotFoundComponent,
  64. }
  65. ];
  66. @NgModule({
  67. imports: [
  68. RouterModule.forRoot(routes, {
  69. enableTracing: !environment.production
  70. }),
  71. ],
  72. exports: [RouterModule]
  73. })
  74. export class AppRoutingModule { }