mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-27 19:02:44 +01:00
1 parent
0e1c6c0ba7
commit
77b030199e
17 files changed
+101
-22
No files matched your search
@@ -11,6 +11,11 @@ export default function ({ $axios, store, $config }) {
|
||||
if (bearerToken) {
|
||||
config.headers.common['Authorization'] = `Bearer ${bearerToken}`
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
config.url = `/dev${config.url}`
|
||||
console.log('Making request to ' + config.url)
|
||||
}
|
||||
})
|
||||
|
||||
$axios.onError(error => {
|
||||
|
||||
Reference in new issue
Block a user