public static function route(Application $app) { $app->get('/runs', 'controller.run:listAction')->bind('run_list'); $app->post('/runs', 'controller.run:createAction')->bind('run_create'); $app->get('/runs/{id}', 'controller.run:showAction')->bind('run_show'); $app->post('/runs/{id}/restart', 'controller.run:restartAction')->bind('run_restart'); $app->post('/runs/{id}/stop', 'controller.run:stopAction')->bind('run_stop'); $app->post('/runs/{id}/delete', 'controller.run:deleteAction')->bind('run_delete'); }
public static function route(Application $app) { $app->get('/translations', 'controller.frontend:langAction')->assert('any', '.*')->bind('lang'); $app->get('/template', 'controller.frontend:templateAction')->bind('template'); $app->get('/{any}', 'controller.frontend:showAction')->assert('any', '.*')->bind('homepage'); }
public static function route(Application $app) { $app->get('/projects', 'controller.project:listAction')->bind('project_list'); $app->get('/projects/{name}', 'controller.project:showAction')->bind('project_show'); }
public static function route(Application $app) { $app->get('/output/{id}', 'controller.outputFile:showAction')->bind('outputFile_show'); }