๐Ÿ“ฆ johnleider / hots-api

๐Ÿ“„ talents.ts ยท 18 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18// Classes
import { Endpoint } from './endpoint'

// Types
import { Talent } from '../../types'

class Talents extends Endpoint {
  all (): Promise<Talent[]> {
    return this.client.get('talents')
  }

  find (talent: string): Promise<Talent> {
    return this.client.get(`talents/${talent}`)
  }
}

export { Talents }