From e21d6f169d5f730a8c53f806b8705fe99072016a Mon Sep 17 00:00:00 2001 From: Simon Oulevay Date: Wed, 4 Dec 2024 10:32:08 +0100 Subject: [PATCH] Redirect home page to documentation --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 3559743..7098a34 100644 --- a/app.js +++ b/app.js @@ -20,6 +20,8 @@ app.use('/doc', express.static("doc")); app.use("/api/images", imageRouter); app.use("/api/tokens", tokenRouter); +app.get('/', (req, res) => res.redirect('/doc')); + // catch 404 and forward to error handler app.use((req, res, next) => { next(createError(404));