Moved configurable api addresses to config.json. Elasticsearch relatime search can also be disabled by setting to false or undefined

This commit is contained in:
2019-06-10 00:43:09 +02:00
parent 1898fb3855
commit 2ae175d1b5
3 changed files with 16 additions and 5 deletions

View File

@@ -1,10 +1,9 @@
import axios from 'axios'
import storage from '@/storage.js'
import config from '@/config.json'
// const SEASONED_URL = 'https://api.kevinmidboe.com/api/'
const SEASONED_URL = 'http://localhost:31459/api/'
const ELASTIC_URL = 'http://localhost:9200/'
const SEASONED_URL = config.SEASONED_URL
const ELASTIC_URL = config.ELASTIC_URL
// TODO
// - Move autorization token and errors here?