mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-21 11:24:53 +02:00
parent
0e1c6c0ba7
commit
77b030199e
17 changed files with 101 additions and 22 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue