Fixed some behaviour in Elo calculation. Began implement match logic.

This commit is contained in:
jd
2026-02-22 02:07:50 +00:00
parent 564ffe7c8c
commit 0fa00e6759
10 changed files with 284 additions and 36 deletions

11
src/routes/matches.ts Normal file
View File

@@ -0,0 +1,11 @@
import { guard } from '../utilities/guard';
import matches from '../endpoints/matches';
import { Claims } from '../orm/claims';
export default {
'POST': guard(matches.create, [Claims.ADMIN, Claims.MATCHES.CREATE]),
':id': {
GET: guard(matches.get, [Claims.ADMIN, Claims.MATCHES.OWNED.READ, Claims.MATCHES.PARTICIPANT.READ]),
DELETE: guard(matches.drop, [Claims.ADMIN, Claims.MATCHES.OWNED.DELETE, Claims.USERS.SELF.UPDATE]),
},
};