Login and Showing of all Users implemented

At /login and /users
This commit is contained in:
2026-04-29 20:41:31 +02:00
parent aa1c11047e
commit 6dfa21a005
3 changed files with 150 additions and 3 deletions

View File

@@ -15,6 +15,10 @@ enum Route {
AllTickets,
#[at("/register")]
Register,
#[at("/login")]
Login,
#[at("/users")]
AllUsers,
#[not_found]
#[at("/404")]
NotFound,
@@ -25,9 +29,11 @@ fn switch(route: Route) -> Html {
Route::Home => html! { <basic_pages::Home/>},
Route::NotFound => html! { <basic_pages::NotFound/> },
Route::Ticket => html! { <ticket::SubmitTicket/> },
Route::TicketById { id } => html! { <ticket::ShowTicketByID id={id}/> },
Route::TicketById { id } => html! { <ticket::TicketByID id={id}/> },
Route::AllTickets => html! { <ticket::AllTickets/> },
Route::Register => html! { <user::Register/> },
Route::Login => html! { <user::Login/> },
Route::AllUsers => html! {<user::AllUsers/>},
}
}