mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
20 lines
366 B
JavaScript
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
|