Skip to content
Snippets Groups Projects
Commit f0a4beed authored by Cam Saul's avatar Cam Saul
Browse files

clarify dox

parent 21b2458f
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,8 @@
(defendpoint POST "/" [:as {{:keys [org page results_per_page load_all q models]
:or {page 1
results_per_page 10}} :body}]
(let [models (if (empty? models) (vals search-choices) ; if search-choices is unspecified default to all choices
(->> models ; otherwise get corresponding model-choice maps
(let [models (if (empty? models) (vals search-choices) ; if `models` is unspecified default to all search choices
(->> models ; otherwise get the corresponding search choice maps
(map keyword)
(map search-choices)))
results (results-for-models models q)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment