$app->get('/report', function () { fAuthorization::requireLoggedIn(); User::requireEmailVerified(); $controller = new ReportController(); $controller->show(fRequest::get('id', 'integer')); }); $app->get('/report/:id', function ($id) { fAuthorization::requireLoggedIn(); User::requireEmailVerified(); $controller = new ReportController(); $controller->show($id); }); $app->get('/contest/:id', function ($id) { User::requireEmailVerified(); $controller = new ReportController(); $controller->show($id); }); $app->get('/contest/:id/register', function ($id) { Util::redirect("/contest/{$id}"); }); $app->post('/contest/:id/register', function ($id) { fAuthorization::requireLoggedIn(); User::requireEmailVerified(); $controller = new ReportController(); $controller->newRegistration($id); }); $app->post('/contest/:id/question', function ($id) { fAuthorization::requireLoggedIn(); User::requireEmailVerified(); $controller = new ReportController(); $controller->newQuestion($id);