// 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 { WorkflowListPage } from './list/workflow-list.page';
import { WorkflowDetailPage } from './detail/workflow-detail.page';
import { WorkflowExecutePage } from './execute/workflow-execute.page';

const routes: Routes = [
	{ path: '', component: WorkflowListPage },
	{ path: 'detail/:wfin_id', component: WorkflowDetailPage },
	{ path: 'execute/:wfj_id', component: WorkflowExecutePage },
	// avvio di un nuovo workflow (modalità start)
	{ path: 'start/:wf_id', component: WorkflowExecutePage },
];

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