mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-13 02:25:10 +00:00
Compare commits
2 Commits
v2.0.0-bet
...
v2.0.0-bet
Author | SHA1 | Date | |
---|---|---|---|
41d105cda8
|
|||
73028f4803
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tcgdex/sdk",
|
||||
"version": "2.0.0-beta.1",
|
||||
"version": "2.0.0-beta.2",
|
||||
"main": "./tcgdex.js",
|
||||
"types": "./main.d.ts",
|
||||
"repository": "https://github.com/tcgdex/javascript-sdk.git",
|
||||
|
@ -53,12 +53,12 @@ export default class TCGdex {
|
||||
}
|
||||
|
||||
public async getSerie(expansion: string): Promise<Serie | undefined> {
|
||||
const req = this.rwgr<Serie>(`/expansions/${expansion}/`)
|
||||
const req = this.rwgr<Serie>(`/series/${expansion}/`)
|
||||
return req.get()
|
||||
}
|
||||
|
||||
public async getSeries(): Promise<SerieList | undefined> {
|
||||
const req = this.rwgr<SerieList>(`/expansions/`)
|
||||
const req = this.rwgr<SerieList>(`/series/`)
|
||||
return req.get()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user