about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-09-27 20:15:10 +0200
committerEmile <hanemile@protonmail.com>2019-09-27 20:15:10 +0200
commit34325da4b44987eafce6144cf9e360615b54ea8f (patch)
tree25bbd70214a1806ac65c4d1a19a321018e860e3d
parent5c1ab5d503a45657ad270fc57aeb70735f137a6a (diff)
removed v1 from the index handler
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index d48a45a..280d359 100644
--- a/server.go
+++ b/server.go
@@ -29,7 +29,7 @@ func main() {
 	// Define a new gorilla/mux router and define some endpoints
 	r := mux.NewRouter()
 
-	r.HandleFunc("/v1/", indexHandler)
+	r.HandleFunc("/", indexHandler)
 	r.HandleFunc("/v1/dumpall", dumpallHandler)
 	r.HandleFunc("/v1/all", printAllHandler)
 	r.HandleFunc("/v1/{station}/{name}", getHandler)