Skip to content

Commit

Permalink
Use Router.StrictSlash to allow calling of host:port/webpath instead …
Browse files Browse the repository at this point in the history
…of host:port/webppath/
  • Loading branch information
oers committed Mar 6, 2016
1 parent af8bf62 commit f04b69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func CreateWeb(cfg *config.Config, pat *pat.Router, asset func(string) ([]byte,
pat.Path(WebPath + "/css/{file:.*}").Methods("GET").HandlerFunc(web.Static("assets/css/{{file}}"))
pat.Path(WebPath + "/js/{file:.*}").Methods("GET").HandlerFunc(web.Static("assets/js/{{file}}"))
pat.Path(WebPath + "/fonts/{file:.*}").Methods("GET").HandlerFunc(web.Static("assets/fonts/{{file}}"))
pat.Path(WebPath + "/").Methods("GET").HandlerFunc(web.Index())
pat.StrictSlash(true).Path(WebPath + "/").Methods("GET").HandlerFunc(web.Index())

return web
}
Expand Down

0 comments on commit f04b69e

Please sign in to comment.