14c25d66eSEd Tanous #pragma once 24c25d66eSEd Tanous 34c25d66eSEd Tanous #include <app.hpp> 44c25d66eSEd Tanous #include <http_request.hpp> 54c25d66eSEd Tanous #include <http_response.hpp> 64c25d66eSEd Tanous 74c25d66eSEd Tanous #include <string> 84c25d66eSEd Tanous 94c25d66eSEd Tanous namespace redfish 104c25d66eSEd Tanous { 114c25d66eSEd Tanous 12d3355c5cSEd Tanous inline void redfishGet(App& app, const crow::Request& req, 13d3355c5cSEd Tanous const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) 144c25d66eSEd Tanous { 15*3ba00073SCarson Labrado if (!redfish::setUpRedfishRoute(app, req, asyncResp)) 161e925c84SEd Tanous { 171e925c84SEd Tanous return; 181e925c84SEd Tanous } 191476687dSEd Tanous asyncResp->res.jsonValue["v1"] = "/redfish/v1/"; 20d3355c5cSEd Tanous } 21d3355c5cSEd Tanous 22f65fca6aSEd Tanous inline void requestRoutesRedfish(App& app) 23d3355c5cSEd Tanous { 24d3355c5cSEd Tanous BMCWEB_ROUTE(app, "/redfish/") 25d3355c5cSEd Tanous .methods(boost::beast::http::verb::get)( 26d3355c5cSEd Tanous std::bind_front(redfishGet, std::ref(app))); 274c25d66eSEd Tanous } 28f65fca6aSEd Tanous 294c25d66eSEd Tanous } // namespace redfish 30