Skip to content

Commit

Permalink
Update webhook.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Mar 30, 2024
1 parent 446c0de commit c4137ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poem-openapi/src/docs/webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct Pet {
#[Webhook]
trait MyWebhooks: Sync {
#[oai(method = "post")]
async fn new_pet(&self, pet: Json<Pet>);
fn new_pet(&self, pet: Json<Pet>);
}

let api = OpenApiService::new((), "Demo", "1.0.0")
Expand Down

0 comments on commit c4137ed

Please sign in to comment.