blob: 7a88cbaa142b2e24495584d7af34b5a0a5b0cc60 [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 Tanous1abe55e2018-09-05 08:30:59 -07004
Ed Tanous1abe55e2018-09-05 08:30:59 -07005namespace redfish
6{
Ed Tanous23a21a12020-07-25 04:45:05 +00007inline void requestRoutes(App& app)
Ed Tanous1abe55e2018-09-05 08:30:59 -07008{
9 BMCWEB_ROUTE(app, "/redfish/")
Ed Tanousb41187f2019-10-24 16:30:02 -070010 .methods(boost::beast::http::verb::get)(
Ed Tanouscb13a392020-07-25 19:02:03 +000011 [](const crow::Request&, crow::Response& res) {
Ed Tanous1abe55e2018-09-05 08:30:59 -070012 res.jsonValue = {{"v1", "/redfish/v1/"}};
13 res.end();
14 });
Ed Tanous3dac7492017-08-02 13:46:20 -070015}
Ed Tanous1abe55e2018-09-05 08:30:59 -070016} // namespace redfish