mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 17:44:51 +02:00
Replace existing axios calls with native https calls
This commit is contained in:
parent
7541e4b660
commit
01178d00bf
15 changed files with 40 additions and 88 deletions
|
@ -39,8 +39,8 @@ export const actions = {
|
|||
return false
|
||||
}
|
||||
|
||||
return this.$axios
|
||||
.$get(`/api/libraries/${libraryId}?include=filterdata`)
|
||||
return this.$nativeHttp
|
||||
.get(`/api/libraries/${libraryId}?include=filterdata`)
|
||||
.then((data) => {
|
||||
const library = data.library
|
||||
const filterData = data.filterdata
|
||||
|
@ -75,8 +75,8 @@ export const actions = {
|
|||
return false
|
||||
}
|
||||
|
||||
return this.$axios
|
||||
.$get(`/api/libraries`)
|
||||
return this.$nativeHttp
|
||||
.get(`/api/libraries`)
|
||||
.then((data) => {
|
||||
// TODO: Server release 2.2.9 changed response to an object. Remove after a few releases
|
||||
const libraries = data.libraries || data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue