(
State(bus): State<Arc<MessageBus>>,
Json(cmd): Json<EditComment>,
)
| 43 | |
| 44 | #[utoipa::path(patch, path = "/boards/comments",request_body=EditComment)] |
| 45 | pub async fn edit_comment( |
| 46 | State(bus): State<Arc<MessageBus>>, |
| 47 | Json(cmd): Json<EditComment>, |
| 48 | ) -> Result<WebResponse<ServiceResponse>, Exception> { |
| 49 | let res = bus.handle(cmd).await.map_err(Exception)?; |
| 50 | |
| 51 | Ok(WebResponse(res)) |
| 52 | } |
| 53 | |
| 54 | pub fn board_routers() -> Router<Arc<MessageBus>> { |
| 55 | Router::new() |
nothing calls this directly
no test coverage detected