import { sendJson } from '../utils/response.js';
export async function handleSearch(req, res, searchEngine, body) {
    const searchOptions = JSON.parse(body);
    const results = await searchEngine.search(searchOptions);
    sendJson(res, { results });
}
//# sourceMappingURL=search.controller.js.map