Skip to content

Commit

Permalink
Merge pull request #33 from achul123/main
Browse files Browse the repository at this point in the history
Stoolen code x)
  • Loading branch information
privt00 authored Jun 20, 2024
2 parents 101d32b + 160c7e1 commit a662c64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/handlers/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -76,7 +77,4 @@ module.exports.load = async function(app, db) {
}
);
});

app.use('/assets', express.static('./assets'));
app.use('/cdn', express.static('./cdn'));
};

0 comments on commit a662c64

Please sign in to comment.