import { NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { NativeScriptRouterModule } from '@nativescript/angular';
import { EvaluationAnswersComponent } from './components/evaluation-answers/evaluation-answers.component';
import { EvaluationCreateComponent } from './components/evaluation-create/evaluation-create.component';
import { EvaluationDetailAnswersComponent } from './components/evaluation-detail-answers/evaluation-detail-answers.component';
import { EvaluationDetailComponent } from './components/evaluation-detail/evaluation-detail.component';
import { EvaluationListComponent } from './components/evaluation-list/evaluation-list.component';
import { EvaluationComponent } from './components/evaluation/evaluation.component';

const routes: Routes = [
    { path: '', component: EvaluationComponent },
    { path: 'list', component: EvaluationListComponent },
    { path: 'list/:evaluationId', component: EvaluationDetailComponent },
    { path: 'answers/:evaluationId', component: EvaluationDetailAnswersComponent },
    { path: 'create', component: EvaluationCreateComponent },
    { path: 'create/:personEvalId', component: EvaluationAnswersComponent }
];

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