blob: 9b5d460991159d430bc30daea9cb65cbccd98a86 [file] [log] [blame]
#pragma once
#include <app.hpp>
#include <http_request.hpp>
#include <http_response.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