LeagueStats/server/app/Lib/Jax/Endpoints/MatchEndpoint.js
2019-09-11 09:06:21 +02:00

20 lines
366 B
JavaScript

const JaxRequest = require('../JaxRequest')
class MatchEndpoint {
constructor(limiter, region) {
this.limiter = limiter
this.region = region
this.get = this.get.bind(this)
}
get(matchID) {
return new JaxRequest(
`match/v4/matches/${matchID}`,
this.limiter,
this.region
).execute()
}
}
module.exports = MatchEndpoint