Skip to content

CSS files are not served. #10

@cydside

Description

@cydside

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions