import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard, ResourceAuthGuard } from '@xdf/security';
import { ReservationsComponent } from './view/reservations/reservations.component';

const routes: Routes = [
    {
        path: 'my-reservations',
        component: ReservationsComponent, 
        canActivate: [AuthGuard, ResourceAuthGuard],
        data: {
            innerTemplate: 'none',
            program: 'reservations_passenger_list',
            breadcrumb: 'Reservaciones'
        }
    }
];

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