From 1803643f1f4df03888768b4f1588530f48867612 Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Mon, 26 May 2025 08:52:05 +0300 Subject: [PATCH] doc: link to ring.md#middleware from data_driven_middleware.md Data Driven Middleware is the first doc title with "Middleware" in it, so people will land in it while trying to figure out the basics of middleware. --- doc/ring/data_driven_middleware.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/ring/data_driven_middleware.md b/doc/ring/data_driven_middleware.md index 2d310ff4..b86a23d9 100644 --- a/doc/ring/data_driven_middleware.md +++ b/doc/ring/data_driven_middleware.md @@ -2,6 +2,8 @@ Ring [defines middleware](https://github.com/ring-clojure/ring/wiki/Concepts#middleware) as a function of type `handler & args => request => response`. It is relatively easy to understand and allows for good performance. A downside is that the middleware chain is just a opaque function, making things like debugging and composition hard. It is too easy to apply the middlewares in wrong order. +For the basics of reitit middleware, [read this first](ring.md#middleware). + Reitit defines middleware as data: 1. A middleware can be defined as first-class data entries