File size: 326 Bytes
0bfe2e3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { Router } from 'express';
import path from 'path';
const router = Router();
import { staticRateLimiter } from '../../middlewares/ratelimit';
import { frontendRoot } from '../../app';

export default router;

router.get('/', staticRateLimiter, (req, res) => {
  res.sendFile(path.join(frontendRoot, 'index.html'));
});