User creation now possible

at /register
This commit is contained in:
2026-04-29 19:47:16 +02:00
parent 50c0b99f20
commit aa1c11047e
5 changed files with 153 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ enum Route {
TicketById { id: i32 },
#[at("/tickets")]
AllTickets,
#[at("/register")]
Register,
#[not_found]
#[at("/404")]
NotFound,
@@ -25,6 +27,7 @@ fn switch(route: Route) -> Html {
Route::Ticket => html! { <ticket::SubmitTicket/> },
Route::TicketById { id } => html! { <ticket::ShowTicketByID id={id}/> },
Route::AllTickets => html! { <ticket::AllTickets/> },
Route::Register => html! { <user::Register/> },
}
}