Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#119 issue query-fn middleware not injected in request #120

Closed
wants to merge 1 commit into from

Conversation

muthuishere
Copy link
Contributor

based on #119

@muthuishere
Copy link
Contributor Author


(defn api-routes [opts]
  ["" {:query-fn (:query-fn opts)}     ; < this adds the :query-fn key to route-data 
   ["/swagger.json"
    {:get {:no-doc  true
           :swagger {:info {:title "<<ns-name>> API"}}
           :handler (swagger/create-swagger-handler)}}]
   ["/health"
    {:get health/healthcheck!}]])

use the
"" {:query-fn (:query-fn opts)}

it can inject query-fn in opts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant