import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { AuthGuard } from "../../auth-guard.service";
import { Mro004Component } from "app/views/mro/mro004/mro004.component";
import { Mro005Component } from "app/views/mro/mro005/mro005.component";
import { Mro006Component } from "app/views/mro/mro006/mro006.component";
import { Mro007Component } from "app/views/mro/mro007/mro007.component";

const routes: Routes = [
  {
    path: "",
    data: {
      title: "報表管理"
    },
    children: [


      {
        path: "mro004",
        component: Mro004Component,
        canActivate: [AuthGuard],
        data: {
          title: "違規類型違規數統計"
        }
      },
      {
        path: "mro005",
        component: Mro005Component,
        canActivate: [AuthGuard],
        data: {
          title: "違規事件&站點違規數統計"
        }
      },

      {
        path: "mro006",
        component: Mro006Component,
        canActivate: [AuthGuard],
        data: {
          title: "設備故障統計表"
        }
      },
      {
        path: "mro007",
        component: Mro007Component,
        canActivate: [AuthGuard],
        data: {
          title: "API 表格清單"
        }
      },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: [

  ]
})
export class MroRoutingModule {}
