summaryrefslogtreecommitdiff
path: root/pkg/api/list.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/list.go')
-rw-r--r--pkg/api/list.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/api/list.go b/pkg/api/list.go
deleted file mode 100644
index 80a34ea..0000000
--- a/pkg/api/list.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package api
-
-import (
- "fmt"
- "net/http"
- "strings"
-)
-
-func (a *API) getListHandler(w http.ResponseWriter, r *http.Request) {
- echos, err := a.idec.GetEchos()
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- for _, e := range echos {
- fmt.Fprintf(w, "%s:%d:%s\n", e.Name, e.Count, e.Description)
- }
-}
-
-func (a *API) getBlacklistHandler(w http.ResponseWriter, r *http.Request) {
- list, err := a.idec.GetBlacklist()
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- fmt.Fprint(w, strings.Join(list, "\n"))
-}