UserController::index(); }); $routes->get('/user/:id', function ($id) { UserController::show($id); }); $routes->post('/user/:id', function ($id) { UserController::update($id); }); $routes->get('/user/:id/edit', function ($id) { UserController::edit($id); }); $routes->get('/user/:id/destroy', function ($id) { UserController::destroy($id); }); $routes->get('/group', function () { GroupController::index(); }); $routes->post('/group', function () { GroupController::store(); }); $routes->get('/group/new', function () { GroupController::create(); }); $routes->get('/group/:id', function ($id) { GroupController::show($id); }); $routes->post('/group/:id/destroy', function ($id) { GroupController::destroy($id); }); $routes->get('/group/:id/destroy', function ($id) { GroupController::destroy($id);