// Questo file fa parte di MyTown.
// MyTown è software libero: puoi ridistribuirlo e/o modificarlo secondo
// i termini della GNU Affero General Public License come pubblicata dalla
// Free Software Foundation, versione 3.
// Distribuito senza ALCUNA GARANZIA; vedi la GNU AGPL v3 per i dettagli.
// Copyright (C) Kondor Consulting & Services S.r.l.
// SPDX-License-Identifier: AGPL-3.0-or-later

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

import { AssembleeListPage } from './list/assemblee-list.page';
import { AssembleeCalendarPage } from './calendar/assemblee-calendar.page';
import { AssembleaDetailPage } from './detail/assemblea-detail.page';
import { AssembleaFormPage } from './form/assemblea-form.page';

const routes: Routes = [
	{ path: '', redirectTo: 'list', pathMatch: 'full' },
	{ path: 'list', component: AssembleeListPage },
	{ path: 'calendar', component: AssembleeCalendarPage },
	{ path: 'add', component: AssembleaFormPage },
	{ path: 'edit/:id', component: AssembleaFormPage },
	{ path: 'detail/:id', component: AssembleaDetailPage },
];

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