},
sub (/robots.txt) { NOT_FOUND },
- sub (/favicon.ico) { NOT_FOUND },
sub (/src/:job) {
return NOT_FOUND if !job;
},
sub (/ed/:contest) {
- forbid contest->is_running;
- response ed => 'Editorial of ' . contest->name, db->problem_list(contest => $_{contest}, solution => 1);
+ forbid !contest->is_finished;
+ my $pblist = db->problem_list(contest => $_{contest}, solution => 1);
+ response ed => 'Editorial of ' . contest->name, {%$pblist, editorial => contest->editorial};
},
sub (/login) {