Replace existing axios calls with native https calls

This commit is contained in:
advplyr
2023-09-17 12:43:50 -05:00
parent 7541e4b660
commit 01178d00bf
15 changed files with 40 additions and 88 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ export default {
return
}
this.loadedLibraryId = this.currentLibraryId
this.authors = await this.$axios
.$get(`/api/libraries/${this.currentLibraryId}/authors`)
this.authors = await this.$nativeHttp
.get(`/api/libraries/${this.currentLibraryId}/authors`)
.then((response) => response.authors)
.catch((error) => {
console.error('Failed to load authors', error)