View every ticket now on /tickets

This commit is contained in:
2026-04-28 21:40:55 +02:00
parent 21aa213ff4
commit de10d694e1
2 changed files with 58 additions and 0 deletions

View File

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