Only match / for index
This commit is contained in:
+1
-1
@@ -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")
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user