mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-22 01:27:46 +01:00
17 lines
388 B
JavaScript
17 lines
388 B
JavaScript
|
import HttpClient from '~/nexus/cognitron/web/client/index'
|
||
|
import SummaApi from '~/nexus/cognitron/web/client/api'
|
||
|
|
||
|
export default ({ $config }, inject) => {
|
||
|
const summaApi = new SummaApi(
|
||
|
new HttpClient({
|
||
|
baseUrl: $config.searchApi,
|
||
|
headers: () => {
|
||
|
return {
|
||
|
Accept: 'application/json'
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
)
|
||
|
inject('search_api', summaApi)
|
||
|
}
|