Reworked Request (#10)

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-06-22 20:51:33 +02:00
committed by GitHub
parent 3684c61812
commit 941fd925b8
2 changed files with 19 additions and 49 deletions

View File

@ -179,7 +179,7 @@ export default class TCGdex {
// eslint-disable-next-line no-misleading-character-class
.replace(/["'\u0300-\u036f]/gu, '')
)).join('/')
return RequestWrapper.getRequest<T>(`${BASE_URL}/${this.getLang()}/${path}`).get()
return RequestWrapper.fetch<T>(`${BASE_URL}/${this.getLang()}/${path}`)
}
}