name('updateTasksInWorkflow'); Route::resource('workflowsHistory', WorkflowHistoryController::class); Route::get('/workflowsHistory/workflow/{id}', [WorkflowHistoryController::class, 'historyByWorkflowId']); Route::get('/workflowsHistory/{workflow}/versions/{v1}/{v2}', [WorkflowHistoryController::class, 'compareVersionsByWorkflowId']); Route::resource('requests', RequestController::class); Route::get('/requests/user/{id}', [RequestController::class, 'showByUserId']); Route::match(['get', 'put'],'/requests/update/workflow/{id}', [RequestController::class, 'updateWorkflowInRequests'])->name('updateWorkflowInRequests'); Route::match(['get', 'put'], '/requests/execute/{id}', [RequestController::class, 'executeRequest'])->name('executeRequest'); Route::resource('requests_workflow', RequestWorkflowController::class); Route::get('/requests_workflow/user/{id}', [RequestWorkflowController::class, 'getRequestsWorkflowByUserId']); Route::put('/requests_workflow/validate/{id}', [RequestWorkflowController::class, 'validateRequestWorkflow']); Route::get('/notifications', [NotificationController::class, 'index']); Route::get('/notifications/user/{id}', [NotificationController::class, 'showByUserId']); Route::match(['get', 'put'],'/notifications/notify/{id}', [NotificationController::class, 'sendNotificationStart'])->name('notifyStartRequest'); Route::match(['get', 'put'],'/notifications/validation/{id}', [NotificationController::class, 'sendNotificationNew'])->name('notifyNewRequest'); Route::match(['get', 'put'],'/notifications/completedTask/{id}', [NotificationController::class, 'sendNotificationCompletedTask'])->name('notifyCompletedTask'); Route::match(['get', 'put'],'/notifications/cancelRequest/{id}', [NotificationController::class, 'sendNotificationCancelRequest'])->name('notifyCancelRequest'); Route::match(['get', 'put'],'/notifications/completedRequest/{id}', [NotificationController::class, 'sendNotificationCompletedRequest'])->name('notifyCompletedRequest'); Route::match(['get', 'put'],'/notifications/newWorkflow/{id}/{multi?}', [NotificationController::class, 'sendNotificationNewWorkflow'])->name('notifyNewWorkflowRequest'); Route::match(['get', 'put'],'/notifications/workflowCompleted/{id}/{workflow}', [NotificationController::class, 'sendNotificationNewWorkflowCompleted'])->name('notifyNewWorkflowCompletedRequest');