summaryrefslogtreecommitdiff
path: root/src/routes.js
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2023-10-09 11:10:51 +0100
committerGitHub <noreply@github.com>2023-10-09 11:10:51 +0100
commitcc6fcb4c405d8cffacbf9b1082abf61e918482fa (patch)
tree693f324550dccedd50b6313165b88281a8ebcac8 /src/routes.js
parent25fcdd1023550631f5fec6f750829fe09a311d66 (diff)
parent31022a7d323a351041b7b8508fb56c14fd699580 (diff)
Merge pull request #114 from lowercasename/rk/static-pages
Static pages
Diffstat (limited to 'src/routes.js')
-rwxr-xr-xsrc/routes.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/routes.js b/src/routes.js
index 5371e0e..d59a738 100755
--- a/src/routes.js
+++ b/src/routes.js
@@ -2,7 +2,7 @@ import fs from "fs";
import express from "express";
import { customAlphabet } from "nanoid";
import randomstring from "randomstring";
-import { getConfig } from "./lib/config.js";
+import { frontendConfig, getConfig } from "./lib/config.js";
import { addToLog } from "./helpers.js";
import moment from "moment-timezone";
import crypto from "crypto";
@@ -1505,9 +1505,7 @@ router.post("/activitypub/inbox", (req, res) => {
});
router.use(function (req, res, next) {
- res.status(404);
- res.render("404", { url: req.url });
- return;
+ return res.status(404).render("404", frontendConfig());
});
addToLog("startup", "success", "Started up successfully");