adding setpeers to client

This commit is contained in:
afeiszli
2021-07-28 23:08:00 -04:00
parent 5bbfe73265
commit 7e7cf40d24
4 changed files with 22 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ import (
)
func serverHandlers(r *mux.Router) {
//r.HandleFunc("/api/server/addnetwork/{network}", securityCheckServer(http.HandlerFunc(addNetwork))).Methods("POST")
r.HandleFunc("/api/server/addnetwork/{network}", securityCheckServer(http.HandlerFunc(addNetwork))).Methods("POST")
r.HandleFunc("/api/server/getconfig", securityCheckServer(http.HandlerFunc(getConfig))).Methods("GET")
r.HandleFunc("/api/server/getwgconfig", securityCheckServer(http.HandlerFunc(getWGConfig))).Methods("GET")
r.HandleFunc("/api/server/removenetwork/{network}", securityCheckServer(http.HandlerFunc(removeNetwork))).Methods("DELETE")