gudu.middleware documentation

router

(router handler-fn default-handler)
Obtains the route from the :route entry of the request,
picks a handler using handler-fn,
defaults to default-handler (which normally generates a 404)

wrap-route

(wrap-route handler routes)
Ring middleware that adds a :route key to the request.