]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster.pm
Add editorial support
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster.pm
index 007ad6bd754369773e356cab360cfdde552c0e4c..0edfe5abd99615f54778a703cef7b8ee354663ce 100644 (file)
@@ -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;
 
This page took 0.02041 seconds and 4 git commands to generate.