Compiles the application's route data into a Ring handler.
Modules emit Reitit route data and this namespace hands it to Reitit (ADR-037), so what is left here is behaviour rather than translation: exception handling, the coercion error shape, the Swagger routes, gzip, and the interceptor stack each route is decorated with.
Compiles the application's route data into a Ring handler. Modules emit Reitit route data and this namespace hands it to Reitit (ADR-037), so what is left here is behaviour rather than translation: exception handling, the coercion error shape, the Swagger routes, gzip, and the interceptor stack each route is decorated with.
(compile-routes route-specs config)Reitit route data in, a Ring handler out.
A plain function rather than a protocol method: IRouter had one
implementation and existed to make the normalized format swappable, and both
are gone (ADR-037). The Reitit router is attached to the handler's metadata
so devtools can read the route table without unwrapping middleware.
Reitit route data in, a Ring handler out. A plain function rather than a protocol method: `IRouter` had one implementation and existed to make the normalized format swappable, and both are gone (ADR-037). The Reitit router is attached to the handler's metadata so devtools can read the route table without unwrapping middleware.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |