mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 09:07:59 +00:00
add query
This commit is contained in:
parent
042c450af5
commit
acc2bbbf60
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user