This commit is contained in:
Tommi Reiman 2018-08-22 22:46:42 +03:00
parent e2da118de7
commit e04d73eff7
3 changed files with 3 additions and 4 deletions

View file

@ -10,7 +10,6 @@
* Extendable * Extendable
* Modular * Modular
* [Fast](performance.md) * [Fast](performance.md)
* [Frontend routing](./frontend/README.md)
Modules: Modules:
@ -20,7 +19,7 @@ Modules:
* `reitit-schema` [Schema](https://github.com/plumatic/schema) coercion * `reitit-schema` [Schema](https://github.com/plumatic/schema) coercion
* `reitit-swagger` [Swagger2](https://swagger.io/) apidocs * `reitit-swagger` [Swagger2](https://swagger.io/) apidocs
* `reitit-swagger-ui` Integrated [Swagger UI](https://github.com/swagger-api/swagger-ui). * `reitit-swagger-ui` Integrated [Swagger UI](https://github.com/swagger-api/swagger-ui).
* `reitit-frontend` Tools for frontend routing. * [`reitit-frontend`](frontend/basics.md) Tools for frontend routing.
To use Reitit, add the following dependency to your project: To use Reitit, add the following dependency to your project:

View file

@ -27,7 +27,7 @@
* [Static Resources](ring/static.md) * [Static Resources](ring/static.md)
* [Dynamic Extensions](ring/dynamic_extensions.md) * [Dynamic Extensions](ring/dynamic_extensions.md)
* [Data-driven Middleware](ring/data_driven_middleware.md) * [Data-driven Middleware](ring/data_driven_middleware.md)
* [Transforming Middleware Chain](transforming_middleware_chain.md) * [Transforming Middleware Chain](ring/transforming_middleware_chain.md)
* [Middleware Registry](ring/middleware_registry.md) * [Middleware Registry](ring/middleware_registry.md)
* [Default Middleware](ring/default_middleware.md) * [Default Middleware](ring/default_middleware.md)
* [Pluggable Coercion](ring/coercion.md) * [Pluggable Coercion](ring/coercion.md)

View file

@ -1,4 +1,4 @@
# Transformation Middleware Chain # Transforming the Middleware Chain
There is an extra option in ring-router (actually, in the underlying middleware-router): `:reitit.middleware/transform` to transform the middleware chain per endpoint. It gets the vector of compiled middleware and should return a new vector of middleware. There is an extra option in ring-router (actually, in the underlying middleware-router): `:reitit.middleware/transform` to transform the middleware chain per endpoint. It gets the vector of compiled middleware and should return a new vector of middleware.