1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00
flox/client/app/config.js

22 lines
451 B
JavaScript
Raw Normal View History

2016-10-10 10:57:39 +02:00
import Vue from 'vue';
import Resource from 'vue-resource';
Vue.use(Resource);
Vue.http.headers.common['X-CSRF-TOKEN'] = document.querySelector('#token').getAttribute('content');
const {url, uri, auth, scoutDriver} = document.body.dataset;
2016-10-11 10:14:04 +02:00
const config = {
2016-10-10 10:57:39 +02:00
uri,
url,
auth,
scoutDriver,
poster: url + '/assets/poster',
posterTMDB: 'http://image.tmdb.org/t/p/w185',
api: url + '/api'
2016-10-11 10:14:04 +02:00
};
window.config = config;
export default config;