$controller = new RecordController(); $controller->index(); }); // $app->get('/ranklist', function () { // $controller = new UserController(); // $controller->ranklist(); // }); $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();