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

Function edit_board

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

Source from the content-addressed store, hash-verified

23#[utoipa::path(patch, path = "/boards",request_body=EditBoard)]
24#[axum_macros::debug_handler]
25pub async fn edit_board(
26 State(bus): State<Arc<MessageBus>>,
27 Json(cmd): Json<EditBoard>,
28) -> Result<WebResponse<ServiceResponse>, Exception> {
29 let res = bus.handle(cmd).await.map_err(Exception)?;
30
31 Ok(WebResponse(res))
32}
33
34#[utoipa::path(post, path = "/boards/comments",request_body=AddComment)]
35pub async fn add_comment(

Callers 1

test_edit_boardFunction · 0.85

Calls 2

WebResponseClass · 0.85
handleMethod · 0.80

Tested by 1

test_edit_boardFunction · 0.68