Fork me on GitHub
#ring-swagger
<
2016-12-13
>
d5p00:12:05

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? 🙂