mirror of
https://github.com/fafhrd91/actix-web
synced 2025-03-15 04:33:05 +01:00
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…
x
Reference in New Issue
Block a user