package main import ( "fmt" "log" "net/http" ) func main() { fs := http.FileServer(http.Dir("static")) http.Handle("/static/", http.StripPrefix("/static/", fs)) http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "templates/index.html") }) http.HandleFunc("/music", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "templates/music.html") }) http.HandleFunc("/.well-known/discord", func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain") w.Write([]byte("dh=b81129b4e9cc388c5ab63919550316fc3ca5ebe4")) }) fmt.Println("Running on :8080") log.Fatal(http.ListenAndServe("0.0.0.0:8080", nil)) }