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

22 lines
451 B
JavaScript

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;
const config = {
uri,
url,
auth,
scoutDriver,
poster: url + '/assets/poster',
posterTMDB: 'http://image.tmdb.org/t/p/w185',
api: url + '/api'
};
window.config = config;
export default config;