pub fn ticket_routes(app_state: AppState) -> Router<AppState>
Expand description
Builds and returns the /tickets
route group for a given ticket context.
Routes:
POST /tickets
→ Create a new ticketPUT /tickets/{ticket_id}/open
→ Reopen a closed ticketPUT /tickets/{ticket_id}/close
→ Close an open ticketDELETE /tickets/{ticket_id}
→ Delete a ticketGET /tickets/{ticket_id}
→ Get details of a ticketGET /tickets
→ List all tickets
Nested routes:
- Ticket messages routes →
/{ticket_id}/messages
handled byticket_message_routes