Fixed some behaviour in Elo calculation. Began implement match logic.
This commit is contained in:
11
src/routes/matches.ts
Normal file
11
src/routes/matches.ts
Normal 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]),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user