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) { module.exports = function (app, config, renderTemplate) {
var html_location = "./css/"; var html_location = "./css/";
var location_pwa = "./pwa/";
app.get("/privacy", function (req, res) { app.get("/privacy", function (req, res) {
if (req.hostname == "poketube.fun") { if (req.hostname == "poketube.fun") {
@ -82,6 +83,11 @@ module.exports = function (app, config, renderTemplate) {
renderTemplate(res, req, "content-settings.ejs"); 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) { app.get("/customize", function (req, res) {
const tab = req.query.tab; const tab = req.query.tab;