diff --git a/cmd/horsebot/main.go b/cmd/horsebot/main.go index 394174a..2cce94d 100644 --- a/cmd/horsebot/main.go +++ b/cmd/horsebot/main.go @@ -113,6 +113,7 @@ func main() { mux := http.NewServeMux() mux.Handle("GET /", httpmiddle.Compress(5)(http.FileServerFS(os.DirFS(public)))) + mux.Handle("GET /api/data/", httpmiddle.Compress(5)(http.StripPrefix("/api/data", http.FileServerFS(os.DirFS(dataDir))))) if pubkey != "" { pk, err := hex.DecodeString(pubkey) if err != nil {