mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-30 14:49:47 +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
|
@ -145,8 +145,8 @@ export default {
|
|||
}
|
||||
|
||||
console.log('Payload', payload)
|
||||
this.$axios
|
||||
.$post(`/api/feeds/${this.entityType}/${this.entityId}/open`, payload)
|
||||
this.$nativeHttp
|
||||
.post(`/api/feeds/${this.entityType}/${this.entityId}/open`, payload)
|
||||
.then((data) => {
|
||||
console.log('Opened RSS Feed', data)
|
||||
this.currentFeed = data.feed
|
||||
|
@ -163,8 +163,8 @@ export default {
|
|||
},
|
||||
closeFeed() {
|
||||
this.processing = true
|
||||
this.$axios
|
||||
.$post(`/api/feeds/${this.currentFeed.id}/close`)
|
||||
this.$nativeHttp
|
||||
.post(`/api/feeds/${this.currentFeed.id}/close`)
|
||||
.then(() => {
|
||||
this.$toast.success(this.$strings.ToastRSSFeedCloseSuccess)
|
||||
this.show = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue