diff options
-rw-r--r-- | redfish-core/lib/redfish_v1.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/redfish-core/lib/redfish_v1.hpp b/redfish-core/lib/redfish_v1.hpp index 9f7935de18..a9a786d7d8 100644 --- a/redfish-core/lib/redfish_v1.hpp +++ b/redfish-core/lib/redfish_v1.hpp @@ -127,9 +127,6 @@ inline void requestRoutesRedfish(App& app) .methods(boost::beast::http::verb::get)( std::bind_front(redfishGet, std::ref(app))); - BMCWEB_ROUTE(app, "/redfish/<path>") - (std::bind_front(redfish404, std::ref(app))); - BMCWEB_ROUTE(app, "/redfish/v1/JsonSchemas/<str>/") .methods(boost::beast::http::verb::get)( std::bind_front(jsonSchemaGet, std::ref(app))); @@ -137,6 +134,10 @@ inline void requestRoutesRedfish(App& app) BMCWEB_ROUTE(app, "/redfish/v1/JsonSchemas/") .methods(boost::beast::http::verb::get)( std::bind_front(jsonSchemaIndexGet, std::ref(app))); + + // Note, this route must always be registered last + BMCWEB_ROUTE(app, "/redfish/<path>") + (std::bind_front(redfish404, std::ref(app))); } } // namespace redfish |