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

(:query req) or (get req :query) not working on express request object #531

Open
borkdude opened this issue May 25, 2024 · 0 comments
Open

Comments

@borkdude
Copy link
Member

Repro:

(ns app
  (:require ["express$default" :as express]))

(def app (express))

(app.get "/" (fn [req res]
               (js/console.log req.query)
               (js/console.log (aget req "query"))
               (js/console.log (get req :query))
               (res.send
                #html [:html
                       [:body "Hello",
                        [:pre (js/JSON.stringify req.query)]]])))


(app.listen 1337)
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

No branches or pull requests

1 participant