From a9cc30b9977d143b6ed6b6ec404f7644492b5e11 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 8 Jun 2022 19:06:23 +0300 Subject: [PATCH] add query --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 522aab32..01c5b5bf 100644 --- a/server.js +++ b/server.js @@ -99,7 +99,6 @@ app.get("/api/search", async (req, res) => { return res.redirect("/"); } return res.redirect(`/search?query=${query}`); - }); app.get("/search", async (req, res) => { const { toJson } = require("xml2json"); @@ -114,6 +113,7 @@ app.get("/search", async (req, res) => { } renderTemplate(res, req, "search.ejs", { j: j, + q:query }); }); app.get("/css/:id", (req, res) => {