mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 06:15:22 +02:00
Fix:Relative file path for single book scans, Change:Route names & refactor api
This commit is contained in:
@@ -211,7 +211,7 @@ export const actions = {
|
||||
commit('setLoadedLibrary', currentLibraryId)
|
||||
|
||||
this.$axios
|
||||
.$get(`/api/library/${currentLibraryId}/audiobooks`)
|
||||
.$get(`/api/libraries/${currentLibraryId}/books`)
|
||||
.then((data) => {
|
||||
commit('set', data)
|
||||
commit('setLastLoad')
|
||||
|
||||
@@ -60,7 +60,7 @@ export const actions = {
|
||||
}
|
||||
|
||||
return this.$axios
|
||||
.$get(`/api/library/${libraryId}`)
|
||||
.$get(`/api/libraries/${libraryId}`)
|
||||
.then((data) => {
|
||||
commit('addUpdate', data)
|
||||
commit('setCurrentLibrary', libraryId)
|
||||
|
||||
@@ -64,7 +64,7 @@ export const actions = {
|
||||
}
|
||||
// Immediately update
|
||||
commit('setSettings', updatePayload)
|
||||
return this.$axios.$patch('/api/user/settings', updatePayload).then((result) => {
|
||||
return this.$axios.$patch('/api/me/settings', updatePayload).then((result) => {
|
||||
if (result.success) {
|
||||
commit('setSettings', result.settings)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user