import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { OverviewComponent } from './overview/overview.component';
import { TeamsComponent } from './teams.component';

const routes: Routes = [
  {
    path: ':hash', component: TeamsComponent
  },
  {
    path: 'overview', loadChildren: () => import('./overview/overview.module').then(m => m.OverviewModule)
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TeamsRoutingModule { }
