summaryrefslogtreecommitdiff
path: root/src/routes.js
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-09 10:48:25 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-09 10:48:25 +0100
commitfab74cb0100da89f83983f05d3e3d9e9ea30bc7e (patch)
treea0308fe26a91c3b8c09e66e673f06f4d1787e9c8 /src/routes.js
parent8b33335584afbac74388c4ed16ff1ff7a04e3588 (diff)
Refactor publicConfig into frontendConfig
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");