Esempio n. 1
0
});
$routes->get('/survey', function () {
    SurveyController::index();
});
$routes->post('/survey', function () {
    SurveyController::store();
});
$routes->get('/survey/new', function () {
    SurveyController::create();
});
$routes->get('/survey/:id', function ($id) {
    SurveyController::displaySurvey($id);
});
$routes->get('/survey/:id/edit', function ($id) {
    SurveyController::edit($id);
});
$routes->post('/survey/:id/edit', function ($id) {
    SurveyController::update($id);
});
$routes->post('/survey/:id/delete', function ($id) {
    SurveyController::delete($id);
});
$routes->get('/surveylists', function () {
    HelloWorldController::list_surveylists();
});
$routes->get('/surveylists/1', function () {
    HelloWorldController::show_surveylist();
});
$routes->get('/surveylists/1/answer', function () {
    HelloWorldController::answer_surveys();
});