You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to have a router forward requests for "/" and "/index.html" (and "/js/example.js", etc) to the same handler, I currently have to do something like:
router.get("/",Static::new(Path::new("public")));
router.get("/*",Static::new(Path::new("public")));// notice the "*"
It would be convenient if I could have both of those redirect to the same handler. For example, this syntax would make sense to me:
router.get("*",Static::new(Path::new("public")));
If there's an option everyone can settle on, I'm happy to take a crack at implementing this.
Thoughts?
The text was updated successfully, but these errors were encountered:
Currently, to have a router forward requests for "/" and "/index.html" (and "/js/example.js", etc) to the same handler, I currently have to do something like:
It would be convenient if I could have both of those redirect to the same handler. For example, this syntax would make sense to me:
If there's an option everyone can settle on, I'm happy to take a crack at implementing this.
Thoughts?
The text was updated successfully, but these errors were encountered: