// }); $app->get('/contests', function () { User::requireEmailVerified(); $controller = new ReportController(); $controller->index(); }); $app->get('/homework', function () { User::requireEmailVerified(); $controller = new ReportController(); $controller->homework(); }); $app->get('/reports', function () { fAuthorization::requireLoggedIn(); User::requireEmailVerified(); $controller = new ReportController(); $controller->index(); }); $app->get('/dashboard', function () { fAuthorization::requireLoggedIn(); $controller = new DashboardController(); $controller->index(); }); $app->get('/admin/user/categories', function () { fAuthorization::requireLoggedIn(); $controller = new DashboardController(); $controller->adminUserCategories(); }); $app->post('/admin/user/categories', function () { fAuthorization::requireLoggedIn(); $controller = new DashboardController(); $controller->postUserCategories();