Skip to content
trevor edited this page Feb 20, 2013 · 12 revisions

Routes can be nested using the context macro:

(defroutes api-routes
  (GET "/something" [] ...))   ; matches /api/something

(defroutes main-routes
  (context "/api" [] api-routes)
  other-routes)
Clone this wiki locally