mirror of
https://github.com/0x1d/rcond.git
synced 2025-12-15 02:32:21 +01:00
feat: add hostname management and improve error handling
This commit is contained in:
@@ -43,6 +43,8 @@ func (s *Server) RegisterRoutes() {
|
||||
s.router.HandleFunc("/network/up", HandleNetworkUp).Methods(http.MethodPost)
|
||||
s.router.HandleFunc("/network/down", HandleNetworkDown).Methods(http.MethodPost)
|
||||
s.router.HandleFunc("/network/remove", HandleNetworkRemove).Methods(http.MethodPost)
|
||||
s.router.HandleFunc("/hostname", HandleGetHostname).Methods(http.MethodGet)
|
||||
s.router.HandleFunc("/hostname", HandleSetHostname).Methods(http.MethodPost)
|
||||
}
|
||||
|
||||
func (s *Server) healthHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user