mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add option to use xcpcio as default scoreboard
This commit is contained in:
2 files changed
+11
-7
No files matched your search
@@ -378,11 +378,4 @@ export function apply(ctx: Context, config: ReturnType<typeof Config>) {
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
ctx.on('handler/before/ContestScoreboard#get', (that) => {
|
||||
if (that.request.path.endsWith('/scoreboard')) {
|
||||
that.response.redirect = `${that.request.path}/xcpcio`;
|
||||
return 'cleanup';
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user