Merge "Automation of nodeb health check"
[ric-plt/e2mgr.git] / E2Manager / httpserver / http_server.go
index 1c4ac6c..1109f6e 100644 (file)
@@ -47,6 +47,7 @@ func initializeRoutes(router *mux.Router, rootController controllers.IRootContro
 
        rr := r.PathPrefix("/nodeb").Subrouter()
        rr.HandleFunc("/states", nodebController.GetNodebIdList).Methods(http.MethodGet)
+       rr.HandleFunc("/states/{ranName}", nodebController.GetNodebId).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)