Add version and encryption status into the JSON output
This commit is contained in:
1 parent
e600816d5f
commit
410972906b
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -146,7 +146,7 @@ func handleHttp(router *weave.Router) {
|
||||
io.WriteString(w, router.Status())
|
||||
})
|
||||
http.HandleFunc("/status-json", func(w http.ResponseWriter, r *http.Request) {
|
||||
json, _ := router.MarshalJSON()
|
||||
json, _ := router.GenerateStatusJSON(version, encryption)
|
||||
w.Write(json)
|
||||
})
|
||||
http.HandleFunc("/connect", func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in new issue
Block a user