Skip to content

Unexpected regression with middlewares since v6.4.6 #115

Answered by kartikk221
BobbyWibowo asked this question in Q&A
Discussion options

You must be logged in to vote

So regarding the execution of the middlewares. They are executed in the following order:
1 - Global Middlewares in the order they were registered.
2 - Local Middlewares (Global but with with a certain path specification) in the order they were registered.
3 - Route-Specific Middlewares (Specified when creating the route itself) in the order they were specified.

With that in mind, is it correct to assume that the correct executions for a request to /api/login with the above middlewares should be the following?
1 - middlewareD()
2 - middlewareA()

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@kartikk221
Comment options

@BobbyWibowo
Comment options

@kartikk221
Comment options

@BobbyWibowo
Comment options

@kartikk221
Comment options

Answer selected by BobbyWibowo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants