Skip to content
hejiangzhou edited this page Dec 19, 2012 · 12 revisions

Routes can be nested using the context macro:

(defroutes main-routes
  (context "/api" [] api-routes)
  other-routes)

(defroutes api-routes
  (GET "/something" [] ...))   ; matches /api/something
Clone this wiki locally