about summary refs log tree commit diff
path: root/server.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-09-25 17:39:07 +0200
committerEmile <hanemile@protonmail.com>2019-09-25 17:39:07 +0200
commitb171b43fd8040de3997961e223fda8209fc256ee (patch)
treed756540fdf3e5b12703a0eb7eb8b00e0839cc8e1 /server.go
parent75ed2286f21faea346e3005671e1abc2a4cc94a7 (diff)
implemented the printAll endpoint
Diffstat (limited to 'server.go')
-rw-r--r--server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.go b/server.go
index 928ca83..86df6a5 100644
--- a/server.go
+++ b/server.go
@@ -31,6 +31,7 @@ func main() {
 
 	r.HandleFunc("/", indexHandler)
 	r.HandleFunc("/dumpall", dumpallHandler)
+	r.HandleFunc("/all", printAllHandler)
 	r.HandleFunc("/{station}/{name}", getHandler)
 
 	// Start the http server using the port provided using command line arguments