Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod pages;

// Top-Level pages
use crate::pages::home::Home;
use crate::pages::not_found::NotFound;

/// An app router which renders the homepage and handles 404's
#[component]
Expand All @@ -26,7 +27,7 @@ pub fn App() -> impl IntoView {
<Meta name="viewport" content="width=device-width, initial-scale=1.0" />

<Router>
<Routes fallback=|| view! { NotFound }>
<Routes fallback=NotFound>
<Route path=path!("/") view=Home />
</Routes>
</Router>
Expand Down