Skip to main content

next_route

Macro next_route 

Source
macro_rules! next_route {
    () => { ... };
}
Expand description

This macro is just a syntactic sugar over the Ok(MiddlewareResult::NextRoute)

Behavior: Skips the current middleware stack or route handler.

  • In Global Middleware: Jumps straight to the Routing phase.
  • In a Route: Skips to the next matching route (useful conditional routing).