优化结构

This commit is contained in:
undefined committed 2020-04-30 18:07:35 +08:00
1 parent 75ebc1a746
commit 2554cf660a
34 files changed
+401 -150

No files matched your search

+2 -2
View File
@@ -267,7 +267,7 @@ class ContestCreateHandler extends ContestHandler {
}
}
function apply() {
async function apply() {
Route('/c', module.exports.ContestListHandler);
Route('/c/:tid', module.exports.ContestDetailHandler);
Route('/c/:tid/edit', module.exports.ContestEditHandler);
@@ -278,7 +278,7 @@ function apply() {
Route('/contest/create', module.exports.ContestCreateHandler);
}
module.exports = {
global.Hydro.handler.contest = module.exports = {
ContestListHandler,
ContestDetailHandler,
ContestEditHandler,