()
| 3597 | } |
| 3598 | |
| 3599 | fn question_routes() -> Router<Arc<ServerState>> { |
| 3600 | Router::new() |
| 3601 | .route("/", get(list_questions)) |
| 3602 | .route("/{id}/reply", post(reply_question)) |
| 3603 | .route("/{id}/reject", post(reject_question)) |
| 3604 | } |
| 3605 | |
| 3606 | #[derive(Debug, Clone, Serialize)] |
| 3607 | pub struct QuestionInfo { |