import { Routes } from "@angular/router";

import { AuthGuardService } from "../services/auth-guard.service";

import { SummaryComponent } from "./summary/summary.component";
import { ListOfJumpsComponent } from "./list-of-jumps/list-of-jumps.component";
import { ListOfDzsComponent } from "./list-of-dzs/list-of-dzs.component";
import { NewJumpComponent } from "./new-jump/new-jump.component";
import { ListOfAircraftsComponent } from "./list-of-aircrafts/list-of-aircrafts.component";
import { ListOfJumpTypesComponent } from "./list-of-jump-types/list-of-jump-types.component";
import { ListOfGearsComponent } from "./list-of-gears/list-of-gears.component";
import { DefaultComponent } from "./default/default.component";
import { LoginComponent } from "./login/login.component";
import { UserProfileComponent } from "./user-profile/user-profile.component";
import { NewTunnelFlightComponent } from "./new-tunnel-flight/new-tunnel-flight.component";
import { ListOfTunnelFlightsComponent } from "./list-of-tunnel-flights/list-of-tunnel-flights.component";

export const routes: Routes = [
  {
    path: "",
    component: DefaultComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "summary",
    component: SummaryComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "jumps",
    component: ListOfJumpsComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "dzs",
    component: ListOfDzsComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "newjump",
    component: NewJumpComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "aircrafts",
    component: ListOfAircraftsComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "jumpTypes",
    component: ListOfJumpTypesComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "gears",
    component: ListOfGearsComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "user",
    component: UserProfileComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "newTunnelFlight",
    component: NewTunnelFlightComponent,
    canActivate: [AuthGuardService],
  },
  {
    path: "tunnelFlights",
    component: ListOfTunnelFlightsComponent,
    canActivate: [AuthGuardService],
  },

  { path: "login", component: LoginComponent },
];
