mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 16:55:08 +02:00
fix: error example
This commit is contained in:
@ -27,7 +27,7 @@ async fn optional_payload(
|
||||
}
|
||||
|
||||
#[post("/mandatory")]
|
||||
async fn mandatory_payload(qs: Query<MandatoryFilters>, payload: Json<OptionalPayload>) -> String {
|
||||
async fn mandatory_payload(qs: Query<MandatoryFilters>, payload: Json<MandatoryPayload>) -> String {
|
||||
format!(
|
||||
"you asked for the mandatory query params: {:#?} and mandatory body: {:#?}",
|
||||
qs, payload
|
||||
|
Reference in New Issue
Block a user