               (run! attach' handlersmap)))]
     (.all chain (reify Handler
                   (^void handle [_ ^Context ctx]
-                    (.byMethod ctx (helpers/action (partial callback ctx))))))))
+                    (.byMethod ctx (ch/fn->action (partial callback ctx))))))))
 
 
 (defmethod attach-route :error

      (let [^Handler handler (-> (mapv handlers/adapter (rest handlers-and-path))
                                 (Handlers/chain))]
        (case method
          :any (.prefix chain path (helpers/action #(.all % handler)))
          :all (.prefix chain path (helpers/action #(.all % handler)))
          :get (.get chain path handler)
          :post (.post chain path handler)
          :put (.put chain path handler)


(defmethod attach-route :assets
  [^Chain chain [_ ^String path {:keys [dir indexes]}]]
  (.files chain (ch/fn->action
                 (fn [^FileHandlerSpec spec]
                   (.path spec path)
                   (when indexes (.indexFiles spec (into-array String indexes)))
