}); // Roles $routes->get('/roles', 'admin', function () { RolesController::index(); }); $routes->get('/roles/create', 'admin', function () { RolesController::create(); }); $routes->post('/roles/store', 'admin', function () { RolesController::store(); }); $routes->get('/roles/:id/edit', 'admin', function ($id) { RolesController::edit($id); }); $routes->post('/roles/:id/update', 'admin', function ($id) { RolesController::update($id); }); $routes->get('/roles/:id/destroy', 'admin', function ($id) { RolesController::destroy($id); }); // Hospitals $routes->get('/hospitals', 'admin', function () { HospitalsController::index(); }); $routes->get('/hospitals/create', 'admin', function () { HospitalsController::create(); }); $routes->post('/hospitals/store', 'admin', function () { HospitalsController::store(); }); $routes->get('/hospitals/:id/allocate', 'admin', function ($id) {