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

CSS files are not served. #10

Open
cydside opened this issue Nov 17, 2016 · 0 comments
Open

CSS files are not served. #10

cydside opened this issue Nov 17, 2016 · 0 comments

Comments

@cydside
Copy link

cydside commented Nov 17, 2016

Hi,
in chapter4/4_httprouter/main.go the line

http.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("assets/"))))

even if I use the following code:

filesRourter := NewRouter()
filesRourter.ServeFiles("/assets/css/*filepath", http.Dir("assets/"))

doesn't allow the browser to access the css files, the pase has not a style.
I'm using go1.7.1 and the httprouter last commit is 4563b0b.
Could you please fix it?
Thanks

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

1 participant