search-api.js
291 Bytes
'use strict';
const library = '../../../library';
const API = require(`${library}/api`).SearchAPI;
const log = require('./logger');
const api = new API();
module.exports.getSortByConditionAsync = function(condition) {
return api.get('sortgroup.json', condition).catch(log.error);
};