Skip to content

Commit

Permalink
Fix Playground on Windows (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobDev committed Mar 3, 2023
1 parent 22f3c60 commit 3131088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/chromad/main.go
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"html/template"
"log"
"mime"
"net/http"
"sort"
"strings"
Expand Down Expand Up @@ -181,6 +182,8 @@ func main() {

log.Printf("Starting chromad %s on http://%s\n", version, cli.Bind)

mime.AddExtensionType(".js", "application/javascript")

router := mux.NewRouter()
router.Handle("/", http.HandlerFunc(index)).Methods("GET")
router.Handle("/api/render", http.HandlerFunc(renderHandler)).Methods("POST")
Expand Down

0 comments on commit 3131088

Please sign in to comment.