blob: ed6b5f1f140348e795ac050449d75de295f39641 [file] [log] [blame]
simond47ef9e2022-09-28 22:24:28 -04001import { Router } from 'express';
2const router = Router();
3import { join } from 'path';
Larbi Gharibe9af9732021-03-31 15:08:01 +01004
5/* GET React App */
Adrien BĂ©raud6ecaa402021-04-06 17:37:25 -04006router.get(['/app', '/app/*'], (req, res, next) => {
simond47ef9e2022-09-28 22:24:28 -04007 res.sendFile(join(__dirname, '../public', 'index.html'));
8});
Larbi Gharibe9af9732021-03-31 15:08:01 +01009
simond47ef9e2022-09-28 22:24:28 -040010export default router;