Show 'this node' in GUI

This commit is contained in:
Jakob Borg
2014-01-12 15:19:03 -07:00
parent fc2b557ae6
commit f0b18685a5
3 changed files with 19 additions and 9 deletions

1
gui.go
View File

@@ -75,6 +75,7 @@ func restGetConnections(m *model.Model, w http.ResponseWriter) {
func restGetConfig(w http.ResponseWriter) {
var res = make(map[string]interface{})
res["myID"] = myID
res["repository"] = config.OptionMap("repository")
res["nodes"] = config.OptionMap("nodes")
w.Header().Set("Content-Type", "application/json")