forest.route
Functions and macros to help building Compojure-like request handlers.
ANY
macro
(ANY uri request-destructuring & content)Generate a route that matches any method.
compile-route
macro
(compile-route method uri request-destructuring & content)Compiles a route in the form (method path bindings & body) into a function. Used to create custom route macros.
defroutes
macro
(defroutes name & route-handlers)Define a Foxx handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map.
expand-handler
macro
(expand-handler uri-params request-destructuring & content)Helper function for compile-route.
Wraps response body form inside several binding forms by utilizing with-uir-destructuring and with-request-destructuring