X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=0edfe5abd99615f54778a703cef7b8ee354663ce;hb=45aae842a6659f3d51b8a2f93912e0520f12e64f;hp=007ad6bd754369773e356cab360cfdde552c0e4c;hpb=cb0122d7defc0d1f71f17c0713a36d9fd5f1959e;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 007ad6b..0edfe5a 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -152,6 +152,11 @@ sub dispatch_request{ }, 10 }, + sub (/ed/:contest) { + forbid contest->is_running; + response ed => 'Editorial of ' . contest->name, db->problem_list(contest => $_{contest}, solution => 1); + }, + sub (/login) { forbid !remote_user;