'{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { include('routes.php'); } ); } // Workflow routes for team Route::prefix('{guard}/team')->group(function () { Route::get('/workflow/{team}/{user}', 'TeamWorkflowController@get') ->name('litepie.team.workflow'); Route::post('/workflow/{team}/{user}', 'TeamWorkflowController@post'); Route::get('/action/{team}/{user}', 'TeamActionController@get') ->name('litepie.team.action'); Route::post('/action/{team}/{user}', 'TeamActionController@post'); }); // Workflow routes for user Route::prefix('{guard}/user')->group(function () { Route::get('/workflow/{user}/{user}', 'UserWorkflowController@get') ->name('litepie.team.workflow'); Route::post('/workflow/{user}/{user}', 'UserWorkflowController@post'); Route::get('/action/{user}/{user}', 'UserActionController@get') ->name('litepie.team.action'); Route::post('/action/{user}/{user}', 'UserActionController@post'); });