Viewing ticket by ID

This is now possible by going to /tickets/{id}
This commit is contained in:
2026-04-28 21:23:40 +02:00
parent ac7b2e59b9
commit 21aa213ff4
4 changed files with 257 additions and 5 deletions

View File

@@ -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}/> },
}
}