1234567891011121314151617181920212223242526272829303132 |
- import axios from 'axios'
- // TODO: make this one as settings (or find an other solution)
- // https://dev.to/sanfra1407/how-to-use-env-file-in-javascript-applications-with-webpack-18df
- // switch (app_env) {
- // case 'dev':
- // let path = `http://${window.location.hostname}:8984`
- // break;
- // case 'prod':
- // let path = `http://${window.location.hostname}/api`
- // break;
- // }
- // let path = 'http://dev.api.gdp.fr'
- // let path = 'http://localhost:8984'
- // const
- // let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984')
- // contact@anarchive.net
- // anarchive_9
- // b2dbd10a42860e5540fa9f211f39e160
- export const VIMEO = axios.create({
- // withCredentials: true,
- baseURL: 'https://vimeo.com/api/oembed.json',
- crossorigin: true,
- headers: {
- 'Accept': 'application/json'
- // 'Authorization': `bearer b2dbd10a42860e5540fa9f211f39e160`,
- // 'Access-Control-Allow-Origin': '*'
- // 'Access-Control-Allow-Credentials':
- }
- })
|