Liking cljdoc? Tell your friends :D
Clojure only.

wagoe.platform.shell.http.reitit-router

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.
raw docstring

compile-routesclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close