diff options
author | Emile <hanemile@protonmail.com> | 2019-09-25 17:39:07 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-09-25 17:39:07 +0200 |
commit | b171b43fd8040de3997961e223fda8209fc256ee (patch) | |
tree | d756540fdf3e5b12703a0eb7eb8b00e0839cc8e1 /server.go | |
parent | 75ed2286f21faea346e3005671e1abc2a4cc94a7 (diff) |
implemented the printAll endpoint
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 1 |
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 |