                              (mapv ensure-fn
                                (concat route-param-resolver arg-resolvers))]
                          (fn [handler]
-                           (mw (apply rook/wrap-with-arg-resolvers
-                                 handler resolvers))))
+                           (apply rook/wrap-with-arg-resolvers
+                             (mw handler) resolvers)))
                        mw)
+                  #_#_
                   mw (if schema
                        (fn [handler]
                          (wrap-with-schema (mw handler) schema))

                                    arglist)]
                         (apply ef args)))
                  h  (apply-middleware mw sync? f)

                  pathvec' (mapv #(if (variable? %) ::param-next %) pathvec)


                      :arglist          arglist
                      :arg-resolvers    arg-resolvers
                      :schema           schema
                      :sync?            sync?
                      :metadata         metadata}
            handlers (assoc handlers handler-sym handler)]
        (recur routes handlers middleware (next entries)))
      {:routes     (sorted-routes routes)
