diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 0f1e7af..6a70369 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -1,7 +1,7 @@ pub mod components; mod pages; use components::Nav; -use pages::Home; +use pages::{Home, Login}; use yew::prelude::*; use yew_router::prelude::*; @@ -10,6 +10,8 @@ use yew_router::prelude::*; enum Route { #[at("/")] Home, + #[at("/login")] + Login, #[not_found] #[at("/404")] NotFound, @@ -18,6 +20,7 @@ enum Route { fn switch(routes: Route) -> Html { match routes { Route::Home => html! { }, + Route::Login => html! { }, Route::NotFound => html! { <>