idecnode/pkg/api/misc.go

15 lines
313 B
Go

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)
}
}