mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 07:34:38 -05:00
add manifest.json
This commit is contained in:
parent
75190c5a25
commit
d6b075f575
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue