mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
addressed majority of static checks
This commit is contained in:
@@ -14,10 +14,6 @@ import (
|
||||
"github.com/gravitl/netmaker/mq"
|
||||
)
|
||||
|
||||
type hostNetworksUpdatePayload struct {
|
||||
Networks []string `json:"networks"`
|
||||
}
|
||||
|
||||
func hostHandlers(r *mux.Router) {
|
||||
r.HandleFunc("/api/hosts", logic.SecurityCheck(true, http.HandlerFunc(getHosts))).Methods(http.MethodGet)
|
||||
r.HandleFunc("/api/hosts/{hostid}", logic.SecurityCheck(true, http.HandlerFunc(updateHost))).Methods(http.MethodPut)
|
||||
|
Reference in New Issue
Block a user