about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-09-27 20:13:28 +0200
committerEmile <hanemile@protonmail.com>2019-09-27 20:13:28 +0200
commit5c1ab5d503a45657ad270fc57aeb70735f137a6a (patch)
treed52d54a0675d56ab4fac79889e3e214c6e7ce1a9
parenta1460f28926c11e7a17c67237ace93cdb2532a5b (diff)
v1
-rw-r--r--server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/server.go b/server.go
index 86df6a5..d48a45a 100644
--- a/server.go
+++ b/server.go
@@ -29,10 +29,10 @@ func main() {
 	// Define a new gorilla/mux router and define some endpoints
 	r := mux.NewRouter()
 
-	r.HandleFunc("/", indexHandler)
-	r.HandleFunc("/dumpall", dumpallHandler)
-	r.HandleFunc("/all", printAllHandler)
-	r.HandleFunc("/{station}/{name}", getHandler)
+	r.HandleFunc("/v1/", indexHandler)
+	r.HandleFunc("/v1/dumpall", dumpallHandler)
+	r.HandleFunc("/v1/all", printAllHandler)
+	r.HandleFunc("/v1/{station}/{name}", getHandler)
 
 	// Start the http server using the port provided using command line arguments
 	// The Default port is 8080