mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
21 lines
359 B
JavaScript
21 lines
359 B
JavaScript
|
|
import JaxRequest from '../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()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default MatchEndpoint
|