Skip to content

Commit

Permalink
feat: robots route
Browse files Browse the repository at this point in the history
  • Loading branch information
woodjme committed Sep 18, 2024
1 parent 3b33789 commit a174334
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ app.get('/connecting', (req: Request, res: Response) => {
res.render('connecting', { redirectUrl: config.redirectUrl });
});

app.get('/robots.txt', (req, res) => {
res.type('text/plain');
res.send('User-agent: *\nDisallow: /');
});

app.get('/health', (req: Request, res: Response) => {
res.send('OK');
});
Expand Down

0 comments on commit a174334

Please sign in to comment.