search-api.js 300 Bytes
'use strict';

const library = '../../../library';
const API = require(`${library}/api`).SearchAPI;
const log = require(`${library}/logger`);

const api = new API();

module.exports.getSortByConditionAsync = function(condition) {
    return api.get('sortgroup.json', condition).catch(log.error);
};