blob: 9b5d460991159d430bc30daea9cb65cbccd98a86 [file] [log] [blame]
Ed Tanous911ac312017-08-15 09:37:42 -07001#pragma once
2
Ed Tanous04e438c2020-10-03 08:06:26 -07003#include <app.hpp>
Ed Tanousa8c4ce92021-03-24 08:44:51 -07004#include <http_request.hpp>
5#include <http_response.hpp>
Ed Tanousa8c4ce92021-03-24 08:44:51 -07006
7#include <string>
Ed Tanous1abe55e2018-09-05 08:30:59 -07008
Ed Tanous1abe55e2018-09-05 08:30:59 -07009namespace redfish
10{
Ed Tanousa8c4ce92021-03-24 08:44:51 -070011
Ed Tanous23a21a12020-07-25 04:45:05 +000012inline void requestRoutes(App& app)
Ed Tanous1abe55e2018-09-05 08:30:59 -070013{
14 BMCWEB_ROUTE(app, "/redfish/")
Ed Tanousb41187f2019-10-24 16:30:02 -070015 .methods(boost::beast::http::verb::get)(
zhanghch058d1b46d2021-04-01 11:18:24 +080016 [](const crow::Request&,
17 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) {
18 asyncResp->res.jsonValue = {{"v1", "/redfish/v1/"}};
Ed Tanous1abe55e2018-09-05 08:30:59 -070019 });
Ed Tanous3dac7492017-08-02 13:46:20 -070020}
Ed Tanous1abe55e2018-09-05 08:30:59 -070021} // namespace redfish