fix: add redirect for dev builds

This commit is contained in:
əlemi 2024-04-15 17:12:06 +02:00
parent e1176c7ec1
commit 22f5ccf886
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -37,6 +37,7 @@ fn main() {
<Router> <Router>
<main> <main>
<Routes> <Routes>
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
<Route path="/web" view=move || view! { <Timeline token=cookie /> } /> <Route path="/web" view=move || view! { <Timeline token=cookie /> } />
<Route path="/web/users/:id" view=Actor /> <Route path="/web/users/:id" view=Actor />
// <Route path="/object/:id" view=Object /> // <Route path="/object/:id" view=Object />