mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 02:34:56 +02:00
Fix dynamic route requests, add auth middleware
This commit is contained in:
parent
f83c5dd440
commit
bf38004b5e
11 changed files with 29 additions and 25 deletions
|
@ -39,7 +39,11 @@ export const getters = {
|
|||
}
|
||||
|
||||
export const actions = {
|
||||
load({ commit }) {
|
||||
load({ commit, rootState }) {
|
||||
if (!rootState.user || !rootState.user.user) {
|
||||
console.error('audiobooks/load - User not set')
|
||||
return
|
||||
}
|
||||
this.$axios
|
||||
.$get(`/api/audiobooks`)
|
||||
.then((data) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue