Include zone records in status

This commit is contained in:
Adam Harrison committed 2015-03-17 15:02:09 +00:00
1 parent 50f6402774
commit 6f57774d15
3 files changed
+16

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ func ListenHttp(version string, domain string, db Zone, port int) {
router.Methods("GET").Path("/status").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, fmt.Sprintln("weave DNS", version))
io.WriteString(w, fmt.Sprintln("Serving domain", domain))
io.WriteString(w, db.Status())
})
router.Methods("PUT").Path("/name/{identifier:.+}/{ip:.+}").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {