add manifest.json

This commit is contained in:
Ashley 2023-09-30 20:19:31 +00:00
parent 75190c5a25
commit d6b075f575

View file

@ -29,6 +29,7 @@ const notice =
module.exports = function (app, config, renderTemplate) {
var html_location = "./css/";
var location_pwa = "./pwa/";
app.get("/privacy", function (req, res) {
if (req.hostname == "poketube.fun") {
@ -82,6 +83,11 @@ module.exports = function (app, config, renderTemplate) {
renderTemplate(res, req, "content-settings.ejs");
});
app.get("/manifest.json", function (req, res) {
res.sendFile("manifest.json", { root: location_pwa });
});
app.get("/customize", function (req, res) {
const tab = req.query.tab;