[back/perf] optional query key
This commit is contained in:
parent
e88d02c5cf
commit
b052dc09fd
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@
|
|||
["/hp/:id" {:parameters {:path {:id s/Int}}
|
||||
:get {:handler handlers/build-api-hu-post}}]
|
||||
["/hq/:id" {:parameters {:path {:id s/Int}
|
||||
:query {:session_id s/Int}}
|
||||
:query {(s/optional-key :session_id) s/Int
|
||||
(s/optional-key :cursor) s/Str}}
|
||||
:get {:handler handlers/build-api-hu-question}}]]]
|
||||
{:data {:coercion reitit.coercion.schema/coercion
|
||||
:middleware [parameters/parameters-middleware
|
||||
|
|
Loading…
Reference in a new issue