Include zone records in status
This commit is contained in:
1 parent
50f6402774
commit
6f57774d15
3 files changed
+16
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user