test something
This commit is contained in:
parent
6ea7cb88c5
commit
b736710ff0
@ -346,7 +346,8 @@ app.get('/calendar', (req, res) => {
|
|||||||
app.get("/css/:id", (req, res) => {
|
app.get("/css/:id", (req, res) => {
|
||||||
const filePath = path.join(cssDir, req.params.id);
|
const filePath = path.join(cssDir, req.params.id);
|
||||||
if (!fs.existsSync(filePath)) {
|
if (!fs.existsSync(filePath)) {
|
||||||
res.status(404).send("File not found");
|
res.status(404)
|
||||||
|
renderTemplate(res, req, "404.ejs", { });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (req.params.id.endsWith(".css") && !req.query.nomin) {
|
if (req.params.id.endsWith(".css") && !req.query.nomin) {
|
||||||
@ -415,7 +416,8 @@ app.get("/game-hub", function (req, res) {
|
|||||||
const filePath = path.join(html_location, id);
|
const filePath = path.join(html_location, id);
|
||||||
|
|
||||||
if (!fs.existsSync(filePath)) {
|
if (!fs.existsSync(filePath)) {
|
||||||
res.status(404).send("File not found");
|
res.status(404)
|
||||||
|
renderTemplate(res, req, "404.ejs", { });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user