1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 05:14:39 -05:00

add custom themes :3

This commit is contained in:
Ashley 2023-02-22 16:02:06 +00:00
parent 68abb6d17b
commit 27c56031c3

View file

@ -53,6 +53,10 @@ module.exports = function (app, config, renderTemplate) {
app.get("/credits", function (req, res) { app.get("/credits", function (req, res) {
renderTemplate(res, req, "want-you-gone.ejs"); renderTemplate(res, req, "want-you-gone.ejs");
}); });
app.get("/custom-theme", function (req, res) {
renderTemplate(res, req, "custom-css.ejs");
});
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 });