This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-09
Channels
- # bangalore-clj (1)
- # beginners (158)
- # boot (8)
- # cider (9)
- # cljsjs (9)
- # clojure (169)
- # clojure-austin (1)
- # clojure-denmark (1)
- # clojure-dusseldorf (5)
- # clojure-italy (9)
- # clojure-losangeles (2)
- # clojure-russia (31)
- # clojure-spec (53)
- # clojure-turkiye (1)
- # clojure-uk (56)
- # clojurescript (145)
- # cursive (72)
- # datascript (4)
- # datomic (3)
- # duct (121)
- # events (9)
- # figwheel (1)
- # fulcro (46)
- # graphql (4)
- # hoplon (16)
- # jobs (1)
- # jobs-discuss (4)
- # leiningen (16)
- # lumo (5)
- # off-topic (38)
- # om (1)
- # om-next (5)
- # onyx (104)
- # parinfer (5)
- # re-frame (106)
- # reagent (1)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (235)
- # slack-help (4)
- # unrepl (25)
- # yada (9)
Sorry for silly question but may I ask why am I getting java.lang.ClassNotFoundException: ring.middleware.format-params
when I have included dependencies for both [metosin/compojure-api "2.0.0-alpha12"]
and [ring-middleware-format "0.7.2"]
. I am want to serve both API and static resources following this tutorial https://github.com/metosin/compojure-api/wiki/Serving-static-resources
Code then looks like this
(defapi app
:middleware [ring.middleware.format-params/wrap-restful-params
ring.middleware.format-response/wrap-restful-response
wrap-public-resource]
api-config
(context "/api" []
api-routes-calendar
api-routes-campaigns
api-routes-companies
api-routes-contacts
api-routes-files
api-routes-reports
api-routes-tags
api-routes-tasks
api-routes-users)
(undocumented app-routes ; static content
not-found-routes)) ; 404
Currently this works both for API and static content if I comment out ring format. However localhost:3000/docs
(name of the docs) returns the 404 not-found-route