diff --git a/app/models/index.js b/app/models/index.js index 5dab0eb..231d9f6 100644 --- a/app/models/index.js +++ b/app/models/index.js @@ -26,10 +26,12 @@ export default class Index { return query(`${this.indexPath}/settings`); } - search(q) { + search(q, options = {}) { + options.q = q; + return query(`${this.indexPath}/search`, { method: 'POST', - body: JSON.stringify({ q }), + body: JSON.stringify(options), }); } }