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