forked from DebaucheryLibrarian/traxxx
13 lines
392 B
JavaScript
13 lines
392 B
JavaScript
const config = require('config');
|
|
const manticore = require('manticoresearch');
|
|
|
|
const mantiClient = new manticore.ApiClient();
|
|
|
|
mantiClient.basePath = `http://${config.database.manticore.host}:${config.database.manticore.httpPort}`;
|
|
|
|
module.exports = {
|
|
searchApi: new manticore.SearchApi(mantiClient),
|
|
indexApi: new manticore.IndexApi(mantiClient),
|
|
utilsApi: new manticore.UtilsApi(),
|
|
};
|