about summary refs log tree commit diff
diff options
context:
space:
mode:
-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