标签: clojure compojure clout
是否可以定义包含多个参数的compojure路径?
即:
(def my-routes (routes (GET "/something/:param1/:param2" [] my-handler)))
答案 0 :(得分:5)
这对我有用:
(GET "/something/:param1/:param2" [param1 param2] (str {:first param1 :second param2}))