}); $routes->get('/beer/:id/edit/', function ($id) { BeerController::edit($id); }); $routes->post('/beer/:id/edit/', function ($id) { BeerController::update($id); }); $routes->post('/beer/:id/destroy/', function ($id) { BeerController::destroy($id); }); $routes->get('/rating/', function () { RatingController::index(); }); $routes->get('/rating/create/', function () { RatingController::create(); }); $routes->post('/rating/create/', function () { RatingController::store(); }); $routes->get('/rating/:id/', function ($id) { RatingController::show($id); }); $routes->get('/rating/:id/edit/', function ($id) { RatingController::edit($id); }); $routes->post('/rating/:id/edit/', function ($id) { RatingController::update($id); }); $routes->post('/rating/:id/destroy/', function ($id) { RatingController::destroy($id); });