mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 06:32:34 +01:00
19 lines
423 B
JavaScript
19 lines
423 B
JavaScript
import http from 'axios';
|
|
http.defaults.headers.common['X-CSRF-TOKEN'] = document.querySelector('#token').getAttribute('content');
|
|
|
|
const {url, uri, auth, scoutDriver, language} = document.body.dataset;
|
|
|
|
const config = {
|
|
uri,
|
|
url,
|
|
auth,
|
|
language,
|
|
scoutDriver,
|
|
poster: url + '/assets/poster',
|
|
posterTMDB: 'http://image.tmdb.org/t/p/w185',
|
|
api: url + '/api'
|
|
};
|
|
|
|
window.config = config;
|
|
|
|
export default config; |