and it needs to be in the right order, too

master
David Ashby 8 months ago
parent c5e90fa640
commit f71e630e63
  1. 2
      main.go

@ -20,11 +20,11 @@ func main() {
flag.StringVar(&hostname, "hostname", "localhost", "Hostname the Prusa Connect API is available at (assumes http)")
var port string
flag.StringVar(&port, "port", "3000", "Local port to run server on")
flag.Parse()
config := Config{
PrinterHostname: "http://" + hostname,
Port: port,
}
flag.Parse()
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "index.html" || r.URL.Path == "/" {

Loading…
Cancel
Save