aboutsummaryrefslogtreecommitdiff
path: root/src/routes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes.ts')
-rw-r--r--src/routes.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/routes.ts b/src/routes.ts
index ff3220c..7ebb610 100644
--- a/src/routes.ts
+++ b/src/routes.ts
@@ -217,5 +217,10 @@ export default (metadata: Metadata): Router => {
retrieveFile(res, identity, "index.html");
});
+ router.use((_, res) => {
+ res.status(404);
+ res.sendFile(path.join(__dirname, "..", "public", "static", "404.html"));
+ });
+
return router;
};