Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How you target all routes? #97

Open
ColtHands opened this issue Dec 7, 2017 · 1 comment
Open

How you target all routes? #97

ColtHands opened this issue Dec 7, 2017 · 1 comment

Comments

@ColtHands
Copy link

I want to target all routes and that just doesnt seem to work.
All of the below do not work.
mount.mount("/*", Static::new(Path::new("public")));
mount.mount("*", Static::new(Path::new("public")));
mount.mount("**", Static::new(Path::new("public")));
mount.mount("/(.*)", Static::new(Path::new("public")));

@dominikdosoudil
Copy link

I believe you want to do just mount.mount("/", Static::new(Path::new("public")));

That will use Static for every request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants