from da web to searches!!!

This commit is contained in:
Ashley 2022-10-20 17:22:48 +02:00
parent de646f67c8
commit 3593b547fa

View file

@ -431,10 +431,15 @@ app.get("/search", async (req, res) => {
return res.redirect("/");
}
const summary = await wiki
.summary(query + "")
.then((summary_) => (summary_.title !== "Not found." ? summary_ : "none"));
renderTemplate(res, req, "search.ejs", {
j,
continuation,
q: query,
summary
});
});