From f0753d0500237b934d0ac0016993fca8bccfb058 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 29 Jul 2022 15:26:00 +0300 Subject: [PATCH] Update server.js --- server.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index a199c78..42ed312 100644 --- a/server.js +++ b/server.js @@ -1,4 +1,7 @@ - /* +/* + + PokeTube is an Free/Libre youtube front-end. this is our main file. + Copyright (C) 2021-2022 POKETUBE (https://github.com/iamashley0/poketube) This program is free software: you can redistribute it and/or modify @@ -283,7 +286,7 @@ app.get("/channel", async (req, res) => { }); }); -// static pages +// static app.get("/privacy", function (req, res) { renderTemplate(res, req, "priv.ejs"); }); @@ -296,7 +299,10 @@ app.get("/domains", function (req, res) { renderTemplate(res, req, "domains.ejs"); }); -// search +app.get("/license", function (req, res) { + renderTemplate(res, req, "license.ejs"); +}); + app.get("/api/search", async (req, res) => { const query = req.query.query; @@ -305,7 +311,6 @@ app.get("/api/search", async (req, res) => { } return res.redirect(`/search?query=${query}`); }); - app.get("/search", async (req, res) => { const { toJson } = require("xml2json"); const query = req.query.query;