Skip to content

Commit

Permalink
fix: add default value for query param
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesnowy committed May 16, 2024
1 parent 095f532 commit b307885
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
enableHead: true);
v1.MapQuery(
"strings/{stringId:int}",
async (int stringId, [FromQuery] bool found)
async (int stringId, [FromQuery] bool found = true)
=> await Task.FromResult(new GetStringQuery(StringId: stringId, Found: found)));
v1.MapQuery<ListStringsQuery>("strings");
v1.MapCommand(
Expand Down

0 comments on commit b307885

Please sign in to comment.