1 #pragma once 2 3 #include <app.hpp> 4 #include <http_request.hpp> 5 #include <http_response.hpp> 6 7 #include <string> 8 9 namespace redfish 10 { 11 12 inline void requestRoutes(App& app) 13 { 14 BMCWEB_ROUTE(app, "/redfish/") 15 .methods(boost::beast::http::verb::get)( 16 [](const crow::Request&, 17 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) { 18 asyncResp->res.jsonValue = {{"v1", "/redfish/v1/"}}; 19 }); 20 } 21 } // namespace redfish 22