+
+func initializeRoutes(router *mux.Router, controller controllers.INodebController, newController controllers.IController) {
+ r := router.PathPrefix("/v1").Subrouter()
+ r.HandleFunc("/health", controller.HandleHealthCheckRequest).Methods("GET")
+
+ rr := r.PathPrefix("/nodeb").Subrouter()
+ rr.HandleFunc("/{messageType}", controller.HandleRequest).Methods("POST")
+ rr.HandleFunc("/ids", controller.GetNodebIdList).Methods("GET") // nodeb/ids
+ rr.HandleFunc("/{ranName}", controller.GetNodeb).Methods("GET")
+ rr.HandleFunc("/shutdown", newController.ShutdownHandler).Methods("PUT")
+ rr.HandleFunc("/{ranName}/reset", newController.X2ResetHandler).Methods("PUT") // nodeb/{ranName}/reset
+}