summaryrefslogtreecommitdiff
path: root/include/redfish_v1.hpp
blob: 6d2480ebf36d1475ee5315c02a21c104340ddb62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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