import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CreateExamSubjectRouter } from './router/create-exam-subject-router';
import { CreateExamSubjectContainer } from './container/create-exam-subject/create-exam-subject.container';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CreateExamSubjectFormComponent } from './presenter/form/create-exam-subject-form/create-exam-subject-form.component';
import { CreateExamSubjectListComponent } from './presenter/list/create-exam-subject-list/create-exam-subject-list.component';
import { CreateExamSubjectSearchComponent } from './presenter/search/create-exam-subject-search/create-exam-subject-search.component';
import { CreateExamSujectTableComponent } from './presenter/form/create-exam-suject-table/create-exam-suject-table.component';

const routes: Routes = [
  {
    path: '',
    component: CreateExamSubjectRouter,
    children: [
      {
        path: '',
        component: CreateExamSubjectContainer
      },
      {
        path: 'add',
        component: CreateExamSubjectFormComponent
      },
      {
        path: 'edit/:id',
        component: CreateExamSubjectFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    CreateExamSubjectRouter,
    CreateExamSubjectContainer,
    CreateExamSubjectFormComponent,
    CreateExamSubjectListComponent,
    CreateExamSubjectSearchComponent,
    CreateExamSujectTableComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class CreateExamSubjectModule { }
