Only match / for index

This commit is contained in:
Jon Staab
2025-11-10 16:01:43 -08:00
parent 8271671a67
commit c52952cc7f
+1 -1
View File
@@ -98,7 +98,7 @@ func MakeInstance(filename string) (*Instance, error) {
router := instance.Relay.Router()
router.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
router.HandleFunc("/{$}", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "templates/index.html")
})