mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 19:29:03 +01:00
reformat file :p
This commit is contained in:
parent
d0583af7f5
commit
5b168c1ede
1 changed files with 34 additions and 27 deletions
|
@ -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,14 +21,14 @@ 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) {
|
app.get("/privacy", function (req, res) {
|
||||||
renderTemplate(res, req, "priv.ejs");
|
renderTemplate(res, req, "priv.ejs");
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/143", function (req, res) {
|
app.get("/143", function (req, res) {
|
||||||
var number_easteregg = getRandomArbitrary(0, 150);
|
var number_easteregg = getRandomArbitrary(0, 143);
|
||||||
|
|
||||||
if (number_easteregg == "143") {
|
if (number_easteregg == "143") {
|
||||||
renderTemplate(res, req, "143.ejs");
|
renderTemplate(res, req, "143.ejs");
|
||||||
|
@ -40,6 +49,4 @@ app.get("/license", function (req, res) {
|
||||||
app.get("/css/:id", (req, res) => {
|
app.get("/css/:id", (req, res) => {
|
||||||
res.sendFile(req.params.id, { root: html_location });
|
res.sendFile(req.params.id, { root: html_location });
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue