search: stubs out search query endpoint

This commit is contained in:
@wwwjim 2020-08-25 14:34:46 -07:00
parent 1b4168e48f
commit 65b847188e

View File

@ -0,0 +1,14 @@
import * as MW from "~/node_common/middleware";
const initCORS = MW.init(MW.CORS);
const initAuth = MW.init(MW.RequireCookieAuthentication);
export default async (req, res) => {
initCORS(req, res);
initAuth(req, res);
return res.status(200).send({
decorator: "SERVER_SEARCH_QUERY",
data: { query: req.query.query },
});
};