User creation now possible
at /register
This commit is contained in:
@@ -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/> },
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user