Skip to content

Commit

Permalink
Redirect home page to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaHydrae committed Dec 4, 2024
1 parent 26ec6e3 commit e21d6f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e21d6f1

Please sign in to comment.