all you need to know is here
(def routes (http/router [["/" {:interceptors [(interceptor:async) (interceptor2 :root-2)] :get {:interceptors [(interceptor :get) (interceptor2 :get-2)] :handler (handler "root")}}] ["/test1" {:interceptors [(interceptor :level-test-1-1) (interceptor2 :level-test-1-2)]} ["" {:name ::test1 :interceptors [(interceptor :test1-hanler-level-int1) (interceptor2 :test1-hanler-level-int1)] :get {:handler (handler "test1")}}] ["/test2" {:interceptors [(interceptor :level-test-2-1) (interceptor2 :level-test-2-2)] :get {:interceptors [(interceptor :test2-hanler-level-int1) (interceptor2 :test2-hanler-level-int2)] :handler (handler "test2")}}]]]))
Комментариев нет:
Отправить комментарий