Hi. I need a catch all route /*, but I don't care params.
#[test]
fn test_route_path_match() {
let mut router = Router::new();
// works
router.insert("/{*p}", "Catch All Workaround").unwrap();
let matched = router.at("/endpoints/foo/bar").unwrap();
assert_eq!(*matched.value, "Catch All Workaround");
// panic
let mut router = Router::new();
router.insert("/*", "Catch All").unwrap();
let matched = router.at("/endpoints/foo/bar").unwrap();
assert_eq!(*matched.value, "Catch All");
}
Hi. I need a catch all route
/*, but I don't care params.