From aed518ea7670efb52a3d7fed3a35f298409c4003 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Fri, 11 Jan 2019 19:54:06 +0100 Subject: [PATCH] monfront - remove showNode and showGroup There is just no information that could possibily be shown there, that isn't already shown somewhere else. --- cmd/monfront/main.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmd/monfront/main.go b/cmd/monfront/main.go index 6f7c3dc..cc37214 100644 --- a/cmd/monfront/main.go +++ b/cmd/monfront/main.go @@ -132,8 +132,6 @@ func main() { http.HandleFunc("/", showChecks) http.HandleFunc("/static/", showStatic) http.HandleFunc("/check", showCheck) - http.HandleFunc("/group", showGroup) - http.HandleFunc("/node", showNode) http.HandleFunc("/checks", showChecks) http.HandleFunc("/groups", showGroups) http.HandleFunc("/action", checkAction) @@ -444,14 +442,6 @@ func showCheck(w http.ResponseWriter, r *http.Request) { return } } -func showGroup(w http.ResponseWriter, r *http.Request) { - // TODO implement showing all nodes only from one group and its message? - return -} -func showNode(w http.ResponseWriter, r *http.Request) { - // TODO implement showing all checks from one node and its message? - return -} func returnError(status int, con Context, w http.ResponseWriter) { w.Header()["Content-Type"] = []string{"text/html"}