summaryrefslogtreecommitdiff
path: root/pkg/api/misc.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/misc.go')
-rw-r--r--pkg/api/misc.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/api/misc.go b/pkg/api/misc.go
new file mode 100644
index 0000000..85f7a88
--- /dev/null
+++ b/pkg/api/misc.go
@@ -0,0 +1,15 @@
+package api
+
+import (
+ "fmt"
+ "net/http"
+ "strings"
+
+ "gitrepo.ru/neonxp/idecnode/pkg/idec"
+)
+
+func (a *API) getFeaturesHandler(w http.ResponseWriter, r *http.Request) {
+ if _, err := fmt.Fprint(w, strings.Join(idec.Features, "\n")); err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ }
+}