Make redfish namespace consistent
The requestRoutes somehow got put into the crow namespace, despite
everything else being put into redfish. This commit makes the
namespacing consistent, which is a good thing overall for complexity.
Tested:
curl -vvvv --insecure --user root:0penBmc https://192.168.7.2/redfish/v1
returns 200
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I954e1a34893b1b5918eeee25d201c938ef4b55b6
diff --git a/include/redfish_v1.hpp b/include/redfish_v1.hpp
index 4230b5f..7a88cba 100644
--- a/include/redfish_v1.hpp
+++ b/include/redfish_v1.hpp
@@ -2,8 +2,6 @@
#include <app.hpp>
-namespace crow
-{
namespace redfish
{
inline void requestRoutes(App& app)
@@ -16,4 +14,3 @@
});
}
} // namespace redfish
-} // namespace crow
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 3b9631a..960f591 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -78,7 +78,7 @@
#endif
#ifdef BMCWEB_ENABLE_REDFISH
- crow::redfish::requestRoutes(app);
+ redfish::requestRoutes(app);
redfish::RedfishService redfish(app);
// Create EventServiceManager instance and initialize Config