Login and Showing of all Users implemented
At /login and /users
This commit is contained in:
@@ -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/>},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user