mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 10:42:10 +00:00
Fixed get serie pointing the old endpoint
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
6d7381de7d
commit
73028f4803
@ -53,12 +53,12 @@ export default class TCGdex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async getSerie(expansion: string): Promise<Serie | undefined> {
|
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()
|
return req.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getSeries(): Promise<SerieList | undefined> {
|
public async getSeries(): Promise<SerieList | undefined> {
|
||||||
const req = this.rwgr<SerieList>(`/expansions/`)
|
const req = this.rwgr<SerieList>(`/series/`)
|
||||||
return req.get()
|
return req.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user