Viewing ticket by ID
This is now possible by going to /tickets/{id}
This commit is contained in:
@@ -9,6 +9,8 @@ enum Route {
|
||||
Home,
|
||||
#[at("/ticket")]
|
||||
Ticket,
|
||||
#[at("/tickets/:id")]
|
||||
TicketById { id: i32 },
|
||||
#[not_found]
|
||||
#[at("/404")]
|
||||
NotFound,
|
||||
@@ -18,7 +20,8 @@ fn switch(route: Route) -> Html {
|
||||
match route {
|
||||
Route::Home => html! { <basic_pages::Home/>},
|
||||
Route::NotFound => html! { <basic_pages::NotFound/> },
|
||||
Route::Ticket => html! { <ticket::Ticket/> },
|
||||
Route::Ticket => html! { <ticket::SubmitTicket/> },
|
||||
Route::TicketById { id } => html! { <ticket::ShowTicketByID id={id}/> },
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user