- rr.HandleFunc("/ids", nodebController.GetNodebIdList).Methods("GET")
- rr.HandleFunc("/{ranName}", nodebController.GetNodeb).Methods("GET")
- rr.HandleFunc("/shutdown", nodebController.Shutdown).Methods("PUT")
- rr.HandleFunc("/{ranName}/reset", nodebController.X2Reset).Methods("PUT")
- rr.HandleFunc("/x2-setup", nodebController.X2Setup).Methods("POST")
- rr.HandleFunc("/endc-setup", nodebController.EndcSetup).Methods("POST")
+ rr.HandleFunc("/ids", nodebController.GetNodebIdList).Methods(http.MethodGet)
+ rr.HandleFunc("/{ranName}", nodebController.GetNodeb).Methods(http.MethodGet)
+ rr.HandleFunc("/enb", nodebController.AddEnb).Methods(http.MethodPost)
+ rr.HandleFunc("/enb/{ranName}", nodebController.DeleteEnb).Methods(http.MethodDelete)
+ rr.HandleFunc("/{ranName}/update", nodebController.UpdateGnb).Methods(http.MethodPut)
+ rr.HandleFunc("/enb/{ranName}", nodebController.UpdateEnb).Methods(http.MethodPut)
+ rr.HandleFunc("/shutdown", nodebController.Shutdown).Methods(http.MethodPut)
+ rr.HandleFunc("/parameters", nodebController.SetGeneralConfiguration).Methods(http.MethodPut)
+ rrr := r.PathPrefix("/e2t").Subrouter()
+ rrr.HandleFunc("/list", e2tController.GetE2TInstances).Methods(http.MethodGet)