feat: use notfound.ejs as fallback
This commit is contained in:
parent
c54ad9aefa
commit
083187c15b
@ -26,4 +26,9 @@ routes.use("/marques", getUsername, verifyAuthentication, marquesRoute);
|
||||
routes.use("/membres", memberRouter);
|
||||
routes.use("/models", modelRouter);
|
||||
|
||||
// 404 fallback
|
||||
routes.get("*", (_req, res) => {
|
||||
res.render('notfound.ejs');
|
||||
});
|
||||
|
||||
export default routes;
|
||||
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
404 -- Not Found
|
||||
</title>
|
||||
|
||||
<%- include('partials/links.ejs') %>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partials/header.ejs') %>
|
||||
|
||||
<h1>
|
||||
¯\_(ツ)_/¯
|
||||
</h1>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user