at 22.05-pre 13 lines 463 B view raw
1diff --git a/main.go b/main.go 2index 4046911..a126bae 100644 3--- a/main.go 4+++ b/main.go 5@@ -411,7 +411,7 @@ func main() { 6 7 if configuration.StaticFilesPath != "" { 8 fs := http.FileServer(http.Dir(configuration.StaticFilesPath)) 9- r.Handler("GET", "/files/:filename", http.StripPrefix("/files/", fs)) 10+ r.Handler("GET", "/files/*filepath", http.StripPrefix("/files/", fs)) 11 log.Println("Serving static files from " + configuration.StaticFilesPath) 12 } 13