fix: support index.html path

This commit is contained in:
Jeremy Kahn 2022-08-10 22:31:11 -05:00
parent 7e68849eea
commit 583c808f4e

View File

@ -8,7 +8,9 @@ function Bootstrap() {
return ( return (
<div className="Chitchatter"> <div className="Chitchatter">
<Routes> <Routes>
<Route path="/" element={<Home />} /> {['/', '/index.html'].map(path => (
<Route key={path} path={path} element={<Home />} />
))}
<Route path="/public/:roomId" element={<PublicRoom />} /> <Route path="/public/:roomId" element={<PublicRoom />} />
</Routes> </Routes>
</div> </div>