We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26367b9 commit 1d9db39Copy full SHA for 1d9db39
axum/src/docs/method_routing/route_layer.md
@@ -1,8 +1,7 @@
1
Apply a [`tower::Layer`] to the router that will only run if the request matches
2
a route.
3
4
-Note that the middleware is only applied to existing routes. So you have to
5
-first add your routes (and / or fallback) and then call `route_layer`
+Note that the middleware is only applied to existing routes. First add your routes and then call `route_layer`
6
afterwards. Additional routes added after `route_layer` is called will not have
7
the middleware added.
8
0 commit comments