1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1× 1× 2× 2× 1× 1× | import DDragonRequest, { DDragonRequestTypes, } from 'RequestClient/DDragonRequest' import METHOD_NAMES from 'Enums/method-names' class DDragonVersionEndpoint { constructor(config) { this.config = config this.list = this.list.bind(this) } list() { return new DDragonRequest( this.config, 'versions.json', DDragonRequestTypes.API, METHOD_NAMES.DDRAGON.VERSION_LIST, ) } } export default DDragonVersionEndpoint |