reformat file :p

This commit is contained in:
Ashley 2022-12-19 11:52:57 +00:00
parent 3d44c7b6b4
commit 4aa8f3bc1b

View file

@ -1,4 +1,13 @@
const { fetcher,core, wiki,musicInfo, modules, version, initlog, init,} = require("../libpoketube-initsys.js"); const {
fetcher,
core,
wiki,
musicInfo,
modules,
version,
initlog,
init,
} = require("../libpoketube-initsys.js");
const { const {
IsJsonString, IsJsonString,
convert, convert,
@ -12,34 +21,32 @@ const {
const sha384 = modules.hash; const sha384 = modules.hash;
module.exports = function (app, config, renderTemplate) { module.exports = function (app, config, renderTemplate) {
var html_location = './css/'; var html_location = "./css/";
app.get("/privacy", function (req, res) {
renderTemplate(res, req, "priv.ejs");
});
app.get("/143", function (req, res) { app.get("/privacy", function (req, res) {
var number_easteregg = getRandomArbitrary(0, 150); renderTemplate(res, req, "priv.ejs");
});
if (number_easteregg == "143") { app.get("/143", function (req, res) {
renderTemplate(res, req, "143.ejs"); var number_easteregg = getRandomArbitrary(0, 143);
}
if (number_easteregg != "143") {
return res.redirect("/");
}
});
app.get("/domains", function (req, res) { if (number_easteregg == "143") {
renderTemplate(res, req, "domains.ejs"); renderTemplate(res, req, "143.ejs");
}); }
if (number_easteregg != "143") {
return res.redirect("/");
}
});
app.get("/license", function (req, res) { app.get("/domains", function (req, res) {
renderTemplate(res, req, "license.ejs"); renderTemplate(res, req, "domains.ejs");
}); });
app.get("/css/:id", (req, res) => { app.get("/license", function (req, res) {
res.sendFile(req.params.id, { root : html_location}); renderTemplate(res, req, "license.ejs");
}); });
app.get("/css/:id", (req, res) => {
} res.sendFile(req.params.id, { root: html_location });
});
};