brunner56's picture
implement app
0bfe2e3
raw
history blame contribute delete
326 Bytes
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'));
});