import express , { Request , Response } from 'express' ; import path from 'path' ; import { publicDirectory } from '../../common' ; export const catchAllRouter = express . Router ( ) ; catchAllRouter . get ( '/*' , ( _req , res ) => { res . sendFile ( path . join ( publicDirectory , 'index.html' ) ) ; } ) ;