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

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

const api = new API();

const fake = require('./fake');

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

    return Promise.resolve(fake.fakeNav);
};