blob: 409eed050bb3633c187cf68adada8d841e57267f [file] [log] [blame]
import { Router } from 'express'
const router = Router()
import { join } from 'path'
import { fileURLToPath } from 'url'
import { dirname } from 'path'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
/* GET React App */
router.get(['/app', '/app/*'], (req, res, next) => {
res.sendFile(join(__dirname, '../public', 'index.html'))
})
export default router