Fork me on GitHub
#ring-swagger
<
2016-04-14
>
pdlug19:04:46

How do I get access to the session in the request from within a compojure-api route?

juhoteperi19:04:36

The same as in regular Compojure: (GET "..." req (println (:session req)) (ok ...))

pdlug19:04:21

ah I had [req] which didn’t work, thanks!

juhoteperi19:04:25

Vector destructuring is for accessing path-params, though it is also possible to access the whole req using it: [:as req]