blob: 4ef050c759eb7489e72a6f0563a34f412da63f74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"use strict";
const apibay = require('../server/js/apibay');
const template = require('../server/js/template');
async function search(req, res)
{
let query = req.body.search;
let results = await apibay.hit(query);
res.render('result', {query: query, results: results, functions: template});
};
module.exports = search;
|