This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-13
Channels
- # bangalore-clj (5)
- # beginners (94)
- # boot (145)
- # cljs-dev (4)
- # cljsjs (79)
- # cljsrn (18)
- # clojure (343)
- # clojure-dev (21)
- # clojure-dusseldorf (6)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-russia (62)
- # clojure-sanfrancisco (1)
- # clojure-spec (109)
- # clojure-taiwan (1)
- # clojure-uk (103)
- # clojurescript (102)
- # code-reviews (30)
- # component (1)
- # cursive (39)
- # datascript (7)
- # datomic (68)
- # emacs (11)
- # figwheel (1)
- # gorilla (1)
- # hoplon (234)
- # off-topic (46)
- # om (52)
- # onyx (32)
- # planck (9)
- # proton (4)
- # protorepl (5)
- # random (1)
- # re-frame (36)
- # ring (18)
- # ring-swagger (1)
- # specter (6)
- # untangled (3)
- # vim (56)
hi, i’m using compojure-api with liberator to wrap an existing api and have a routing question - i have 2 resources routing them as follows:
(context "/metadata" [] (metadata/metadata-resource db-spec))
(context "/metadata/:metadata_id" []
:path-params [metadata_id :- s/Int] (metadata/metadata-item-resource db-spec metadata_id))
when i use these it seems /metadata/:metadata_id is never reached - the resource for /metadata is always used, unless i change to (context “/metadata/”..) with trailing slash, which breaks my existing api , any ideas what i’m doing wrong? 🙂