2

是否可以定义包含多个参数的复合路由?

IE:

(def my-routes
  (routes 
    (GET "/something/:param1/:param2" [] my-handler)))
4

1 回答 1

5

这对我有用:

(GET "/something/:param1/:param2" [param1 param2]
    (str {:first param1 :second param2}))
于 2012-07-09T19:41:31.397 回答