From 160c7e11ce8a1ba08ac9092b888c9bc5b0b1ff32 Mon Sep 17 00:00:00 2001 From: achul123 <73477238+achul123@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:38:22 +0200 Subject: [PATCH] Stoolen code x) --- api/handlers/pages.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/handlers/pages.js b/api/handlers/pages.js index 1a850f7..75a3dc2 100644 --- a/api/handlers/pages.js +++ b/api/handlers/pages.js @@ -7,6 +7,7 @@ const settings = require("../../settings.json"); module.exports.load = async function(app, db) { app.use('/assets', express.static('./assets')); + app.use('/cdn', express.static('./cdn')); app.all("/", async (req, res) => { if (req.session.pterodactyl && req.session.pterodactyl.id !== await db.get(`users-${req.session.userinfo.id}`)) return res.redirect("/login?prompt=none"); @@ -76,7 +77,4 @@ module.exports.load = async function(app, db) { } ); }); - - app.use('/assets', express.static('./assets')); - app.use('/cdn', express.static('./cdn')); };