1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-11-29 22:47:29 +02:00

Simplify configuration of HTML call.

This commit is contained in:
Alec Thomas
2019-11-28 11:20:45 +11:00
parent 3b4f493cc3
commit 2d34ebacdb
2 changed files with 7 additions and 19 deletions

View File

@@ -153,7 +153,7 @@ func main() {
}
ctx := kong.Parse(&cli, kong.Configuration(konghcl.Loader))
log.Println("Starting")
log.Printf("Starting on http://%s\n", cli.Bind)
router := mux.NewRouter()
router.Handle("/", http.HandlerFunc(index)).Methods("GET")