mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
rate limit robots.txt
This commit is contained in:
@@ -140,7 +140,7 @@ const ServerBootstrapper = {
|
||||
app.use('/images', express.static(path.join(__dirname, '../../client/src/images')));
|
||||
app.use('/styles', express.static(path.join(__dirname, '../../client/src/styles')));
|
||||
app.use('/webfonts', express.static(path.join(__dirname, '../../client/src/webfonts')));
|
||||
app.use('/robots.txt', (req, res) => {
|
||||
app.use('/robots.txt', standardRateLimit, (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../client/robots.txt'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user