fix: support index.html path
This commit is contained in:
parent
7e68849eea
commit
583c808f4e
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user