MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / edit_comment

Function edit_comment

bin/src/routes.rs:45–52  ·  view source on GitHub ↗
(
    State(bus): State<Arc<MessageBus>>,
    Json(cmd): Json<EditComment>,
)

Source from the content-addressed store, hash-verified

43
44#[utoipa::path(patch, path = "/boards/comments",request_body=EditComment)]
45pub 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
54pub fn board_routers() -> Router<Arc<MessageBus>> {
55 Router::new()

Callers

nothing calls this directly

Calls 2

WebResponseClass · 0.85
handleMethod · 0.80

Tested by

no test coverage detected