 
     (testing "ring-handler"
       (let [api-mw #(mw % :api)
-            handler (fn handle
-                      ([{:keys [::mw]}]
-                       {:status 200 :body (conj mw :ok)})
-                      ([request respond raise]
-                       (respond (handle request))))
             router (ring/method-router
                      [["/api" {:middleware [api-mw]}
                        ["/all" handler]

       #(respond (update % :body (fnil conj []) name))
       raise))))

(deftest ring-test

  (testing "simple-router"


    (testing "ring-handler"
      (let [api-mw #(mw % :api)
            router (ring/simple-router
                     [["/ping" handler]
                      ["/api" {:middleware [api-mw]}
