2021-07-03 21:48:27 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
|
|
|
import { UserRouteAccessService } from 'app/core/auth/user-route-access.service';
|
|
|
|
import { EncuestaComponent } from '../list/encuesta.component';
|
|
|
|
import { EncuestaDetailComponent } from '../detail/encuesta-detail.component';
|
|
|
|
import { EncuestaUpdateComponent } from '../update/encuesta-update.component';
|
|
|
|
import { EncuestaRoutingResolveService } from './encuesta-routing-resolve.service';
|
2021-08-01 00:27:00 +00:00
|
|
|
import { EncuestaCompleteComponent } from '../complete/complete.component';
|
2021-07-03 21:48:27 +00:00
|
|
|
|
|
|
|
const encuestaRoute: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: EncuestaComponent,
|
|
|
|
canActivate: [UserRouteAccessService],
|
|
|
|
},
|
|
|
|
{
|
2021-07-23 06:56:59 +00:00
|
|
|
path: ':id/preview',
|
2021-07-03 21:48:27 +00:00
|
|
|
component: EncuestaDetailComponent,
|
|
|
|
resolve: {
|
|
|
|
encuesta: EncuestaRoutingResolveService,
|
|
|
|
},
|
|
|
|
canActivate: [UserRouteAccessService],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
|
|
|
component: EncuestaUpdateComponent,
|
|
|
|
resolve: {
|
|
|
|
encuesta: EncuestaRoutingResolveService,
|
|
|
|
},
|
|
|
|
canActivate: [UserRouteAccessService],
|
|
|
|
},
|
|
|
|
{
|
2021-07-23 06:56:59 +00:00
|
|
|
path: ':id/edit',
|
2021-07-03 21:48:27 +00:00
|
|
|
component: EncuestaUpdateComponent,
|
|
|
|
resolve: {
|
|
|
|
encuesta: EncuestaRoutingResolveService,
|
|
|
|
},
|
|
|
|
canActivate: [UserRouteAccessService],
|
|
|
|
},
|
2021-08-01 00:27:00 +00:00
|
|
|
{
|
|
|
|
path: ':id/complete',
|
|
|
|
component: EncuestaCompleteComponent,
|
|
|
|
resolve: {
|
|
|
|
encuesta: EncuestaRoutingResolveService,
|
|
|
|
},
|
|
|
|
},
|
2021-07-03 21:48:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(encuestaRoute)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class EncuestaRoutingModule {}
|