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.

85 lines
2.5KB

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