idecnode/pkg/api/misc.go

16 lines
313 B
Go
Raw Normal View History

2024-10-20 03:39:07 +03:00
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)
}
}