                   apply-middleware (ensure-fn apply-middleware)
 
                   {:keys [middleware-sym route-params non-route-params
-                          verb-fn-sym arglist arg-resolvers schema sync?]}
+                          verb-fn-sym arglist arg-resolvers schema sync?
+                          metadata]}
                   (get handlers handler-sym)
 
                   route-param-resolver

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

                                    arglist)]
                         (apply ef args)))
                  h  (apply-middleware mw sync? f)
                  h  (fn wrapped-with-rook-metadata [request]
                       (h (update-in request [:rook :metadata]
                            merge (dissoc metadata :arg-resolvers))))

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

