fix: update match configuration to bestOf 5 and scoringType to score_v2

This commit is contained in:
2026-02-28 06:38:05 +01:00
parent e99444b157
commit fb9140a03f
555 changed files with 124715 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
import { e as error, j as json } from './index-B2LGyy1l.js';
import { a as cancelMatch, g as getMatchFull } from './engine-DiCmv1C-.js';
import './index2-B7hVh_Qf.js';
import 'postgres';
import './shared-server-DaWdgxVh.js';
const GET = async ({ params, locals }) => {
if (!locals.user) error(401, "Not logged in");
try {
const m = await getMatchFull(params.id);
return json(m);
} catch (e) {
error(404, e.message);
}
};
const DELETE = async ({ params, locals }) => {
if (!locals.user) error(401, "Not logged in");
try {
const m = await cancelMatch(params.id);
return json(m);
} catch (e) {
error(400, e.message);
}
};
export { DELETE, GET };
//# sourceMappingURL=_server.ts-KSG0NbEr.js.map