From 748a3f2a47f1e84db5a1dfdc95b067c954b83716 Mon Sep 17 00:00:00 2001 From: rgrvontela Date: Mon, 25 Sep 2017 10:18:38 -0400 Subject: [PATCH] Update Middleware.md (#3299) Just a sentence correction that will help readers in understanding it more clearly. --- Documentation/Books/Manual/Foxx/Router/Middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Books/Manual/Foxx/Router/Middleware.md b/Documentation/Books/Manual/Foxx/Router/Middleware.md index 6d38b79e03..fa933accfa 100644 --- a/Documentation/Books/Manual/Foxx/Router/Middleware.md +++ b/Documentation/Books/Manual/Foxx/Router/Middleware.md @@ -3,7 +3,7 @@ Middleware Middleware in Foxx refers to functions that can be mounted like routes and can manipulate the request and response objects before and after the route itself is invoked. They can also be used to control access or to provide common logic like logging etc. Unlike routes, middleware is mounted with the `use` method like a router. -Instead of a function the `use` method can also accept an object with a `register` function that will be passed the endpoint the middleware will be mounted at and returns the actual middleware function. This allows manipulating the endpoint before creating the middleware (e.g. to document headers, request bodies, path parameters or query parameters). +Instead of a function the `use` method can also accept an object with a `register` function that will take a parameter `endpoint`, the middleware will be mounted at and returns the actual middleware function. This allows manipulating the endpoint before creating the middleware (e.g. to document headers, request bodies, path parameters or query parameters). **Examples**