mirror of https://github.com/fafhrd91/actix-web
fix: error example
This commit is contained in:
parent
04e8a417e1
commit
7038244a7d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue