matchit
matchit copied to clipboard
router /{*path} not work
let mut router = matchit::Router::new(); router.insert("/{*path}", "1").unwrap(); router.at("/test").unwrap(); // works router.at("/").unwrap(); // panic
why router.at("/").unwrap() is panic
Static routes don't allow for empty parameters. You can add / as a separate route to the same value if you want that behavior.
Feel free to reopen if you have further questions.