summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-18 00:06:57 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-18 00:06:57 (GMT)
commite9c3f339f4992e9474fc8f9f95ae5e1d21aeb6c5 (patch)
tree48726f818db905735609e488130ff1b69f84a2c9 /src
parent4bdae89134ad99c62a01d1ccd96addef3f53a079 (diff)
fixed routing, added test for ntp
Diffstat (limited to 'src')
-rw-r--r--src/helsinki.at/rhrdtime/rhrdtime.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helsinki.at/rhrdtime/rhrdtime.go b/src/helsinki.at/rhrdtime/rhrdtime.go
index 806e64e..af51902 100644
--- a/src/helsinki.at/rhrdtime/rhrdtime.go
+++ b/src/helsinki.at/rhrdtime/rhrdtime.go
@@ -180,9 +180,9 @@ func RunMartini(ps *pubsub.PubSub, addr string) {
m.Get("/time", func(w http.ResponseWriter, r *http.Request) {
handleTimeUpdateClient(w, r, ps)
})
- // m.Get("/ntp", func(w http.ResponseWriter, r *http.Request) {
- // handleTimeUpdateClient(w, r, ps)
- // })
+ m.Get("/ntp", func(w http.ResponseWriter, r *http.Request) {
+ handleNTPClient(w, r, ps)
+ })
m.RunOnAddr(addr)
}