import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";

// Import Containers
import { FullLayoutComponent, SimpleLayoutComponent } from "./containers";

export const routes: Routes = [
  { path: "login", loadChildren: "./views/login/login.module#LoginModule" },
  { path: "", redirectTo: "login", pathMatch: "full" },
  {
    path: "",
    component: FullLayoutComponent,
    data: { title: "Home" },
    children: [
      {
        path: "dashboard",
        loadChildren: "./views/dashboard/dashboard.module#DashboardModule"
      },
      { path: "punish", loadChildren: "./views/punish/punish.module#PunishModule" },
      { path: "board", loadChildren: "./views/board/board.module#BoardModule" },
      { path: "set", loadChildren: "./views/set/set.module#SetModule" },
      { path: "mro", loadChildren: "./views/mro/mro.module#MroModule" },
      { path: "sys", loadChildren: "./views/sys/sys.module#SysModule" }
    ]
  }
];

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