Skip to main content

serve

Function serve 

Source
pub fn serve(router: Router) -> Router
Expand description

router, serving path-prefix sites from their prefix.

Its routes stay as they are, so merging other routes into it (the framework’s admin and sign-in) works as before. A prefixed path matches none of them and reaches the fallback, which strips the prefix and asks router again.