From d3a54be45084d77dadcd557617ed03b5ccd04959 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 17 Sep 2022 20:45:47 +0200 Subject: [PATCH] search option! --- server.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 8426a4f..f852c99 100644 --- a/server.js +++ b/server.js @@ -1,4 +1,4 @@ - /* + /* PokeTube is an Free/Libre youtube front-end. this is our main file. @@ -104,7 +104,10 @@ app.use(function(req, res, next) { res.send(body) }); - + app.get("/api/opensearch", async (req, res) => { + res.sendFile(__dirname + `/opensearch.xml`); + + }); app.get("/encryption", async function (req, res) { var v = req.query.v;