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

option to define multiple static roots #22

Closed
75lb opened this issue Nov 13, 2015 · 4 comments
Closed

option to define multiple static roots #22

75lb opened this issue Nov 13, 2015 · 4 comments
Milestone

Comments

@75lb
Copy link
Member

75lb commented Nov 13, 2015

for example, how you would do it express

app.use("/assets", serveStatic("./app/assets"));
app.use("/css", serveStatic("./cheese/css"));
etc.
@75lb 75lb modified the milestone: v1.0.0 Nov 13, 2015
@75lb 75lb closed this as completed Nov 15, 2015
@azerafati
Copy link

Why was this closed?

@75lb
Copy link
Member Author

75lb commented Jan 4, 2022

this ticket is over 6 years old - I think it was closed because you can implement the behaviour in multiple ways with existing features (URL rewriting, custom middleware, possibly even by launching multiple different ws instances with separate --directory options).

@azerafati
Copy link

URL rewriting is limited to the same directory root (#45) and launching multiple ws instances won't be on the same port. Could you point to an example with custom middleware?

@75lb
Copy link
Member Author

75lb commented Jan 5, 2022

Have a look on the project wiki, particularly the Creating-middleware page.. let me know if you have any other questions 👍

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

No branches or pull requests

2 participants