From e9c3f339f4992e9474fc8f9f95ae5e1d21aeb6c5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 18 Jul 2015 02:06:57 +0200 Subject: fixed routing, added test for ntp 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) } diff --git a/test/index.html b/test/index.html index 41d0a3a..031b458 100644 --- a/test/index.html +++ b/test/index.html @@ -6,7 +6,7 @@ background-color: #555; } - #timedata { + div.data { background-color: white; border: 1px solid; padding: 1em; @@ -15,12 +15,30 @@ @@ -28,7 +46,11 @@

Radio Helsinki Rivendell Time:

-
+
+ +

Radio Helsinki Rivendell NTP:

+ +
-- cgit v0.10.2