mirror of
https://github.com/actix/actix-web.git
synced 2025-01-20 14:08:07 +00:00
fix: error example
This commit is contained in:
parent
04e8a417e1
commit
7038244a7d
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ async fn optional_payload(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[post("/mandatory")]
|
#[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!(
|
format!(
|
||||||
"you asked for the mandatory query params: {:#?} and mandatory body: {:#?}",
|
"you asked for the mandatory query params: {:#?} and mandatory body: {:#?}",
|
||||||
qs, payload
|
qs, payload
|
||||||
|
|
Loading…
Reference in a new issue