This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-12
Channels
- # aws (21)
- # aws-lambda (8)
- # beginners (53)
- # boot (56)
- # braveandtrue (1)
- # cider (49)
- # cljs-dev (8)
- # cljsjs (1)
- # cljsrn (57)
- # clojure (403)
- # clojure-austin (17)
- # clojure-dusseldorf (10)
- # clojure-greece (9)
- # clojure-spec (57)
- # clojure-uk (144)
- # clojurescript (60)
- # datomic (149)
- # docker (1)
- # emacs (1)
- # hoplon (23)
- # humor (1)
- # jobs (1)
- # leiningen (2)
- # luminus (1)
- # off-topic (1)
- # om (24)
- # om-next (15)
- # onyx (23)
- # protorepl (2)
- # re-frame (58)
- # reagent (90)
- # remote-jobs (1)
- # ring-swagger (4)
- # slackpocalypse (1)
- # spacemacs (2)
- # specter (18)
- # untangled (4)
- # vim (1)
- # yada (27)
I am attempting to have two swagger endpoints in my project so two separate defapi calls and when I have A before B in my compojure.routes/routes function A works perfectly, but B fails on calls with a body with "errors": "(not (map? nil))" . If I put B before A then the same happens to A. It looks like somewhere the input from the response is being deleted before the next swagger api can process it. Is this expected behavior?
@assoc-in, sadly the clojure immutable meets the mutable java, described in here: https://github.com/metosin/compojure-api/wiki/Serving-static-resources#caveats
@sickill the linked wiki page actually describes the options to serve static sites. Didn't remember that. There could be a more batteries-included top-level route with own options and acting as a single route root, which could have static pages, multiple apis & web sockets under it. api
is also a Route
-record, so it can act already as subroute.