View every ticket now on /tickets
This commit is contained in:
@@ -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/> },
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user