We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744c574 commit 8161e33Copy full SHA for 8161e33
1 file changed
serve/main.go
@@ -46,6 +46,9 @@ func main() {
46
func mux(static string, score ScoreHandler) *httprouter.Router {
47
r := httprouter.New()
48
if static != "" {
49
+ if !strings.HasSuffix(static, "/") {
50
+ static += "/"
51
+ }
52
r.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
53
http.ServeFile(w, r, static+"index.html")
54
})
0 commit comments