add option to use xcpcio as default scoreboard

This commit is contained in:
undefined committed 2025-11-18 18:15:48 +08:00
1 parent 191353fbbc
commit 5810371934
2 files changed
+11 -7

No files matched your search

-7
View File
@@ -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';
}
});
}