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

                             (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)

