@@ -137,7 +138,7 @@ function navigate_to_article(self, source) {
...
@@ -137,7 +138,7 @@ function navigate_to_article(self, source) {
}
}
functionnavigate_to_search(self,query){
functionnavigate_to_search(self,query){
axios.get(self.api_old+'search?q='+query)
axios.get(self.api_pref+'search?q='+query,{headers:{"x-api-key":"ZkYiyRVXxH86ijsvhx3cH4SY5Iik2ijI3BKVJGMm"}})// API-key to be removed or reimplemented with a ci-variable with the new API
.then(function(response){
.then(function(response){
self.search_results=response.data
self.search_results=response.data
if (!self.search_results.length){
if (!self.search_results.length){
...
@@ -162,7 +163,7 @@ function navigate_to_search(self, query) {
...
@@ -162,7 +163,7 @@ function navigate_to_search(self, query) {
}
}
functionnavigate_to_word(self,word){
functionnavigate_to_word(self,word){
axios.get(self.api_old+'suggest?q='+word)
axios.get(self.api_pref+'suggest?q='+word,{headers:{"x-api-key":"ZkYiyRVXxH86ijsvhx3cH4SY5Iik2ijI3BKVJGMm"}})// API-key to be removed or reimplemented with a ci-variable with the new API