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 change default route to public? #7

Open
renatocassino opened this issue Feb 19, 2017 · 1 comment
Open

How change default route to public? #7

renatocassino opened this issue Feb 19, 2017 · 1 comment

Comments

@renatocassino
Copy link

Hello guys!

I put this code in my app.js

app.use(serve('./public'));

I have a folder public, with folder assets. But if I try to open http://localhost/assets/style.css I receive 404 error. I need to put public in front (like http://localhost/**public**/assets/style.css)

There is a way to change this? To access http://localhost/assets/style.css ?

Thanks for this.

@janpieterz
Copy link
Owner

Hi @tacnoman , this is currently not possible with this library. I'd suggest taking a look at one of these, certainly if you're running version 2!

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