blob: 6d2480ebf36d1475ee5315c02a21c104340ddb62 [file] [log] [blame]
#pragma once
#include <app.hpp>
#include <http_request.hpp>
#include <http_response.hpp>
#include <rf_async_resp.hpp>
#include <string>
namespace redfish
{
inline void requestRoutes(App& app)
{
BMCWEB_ROUTE(app, "/redfish/")
.methods(boost::beast::http::verb::get)(
[](const crow::Request&,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) {
asyncResp->res.jsonValue = {{"v1", "/redfish/v1/"}};
});
}
} // namespace redfish