blob: 1e4bd658e6026f5d0260fa9fe11cf50dd614639c [file] [log] [blame]
Ed Tanous911ac312017-08-15 09:37:42 -07001#pragma once
2
Ed Tanousc94ad492019-10-10 15:39:33 -07003#include <app.h>
Ed Tanous1abe55e2018-09-05 08:30:59 -07004
Ed Tanous1abe55e2018-09-05 08:30:59 -07005namespace crow
6{
7namespace redfish
8{
Ed Tanous23a21a12020-07-25 04:45:05 +00009inline void requestRoutes(App& app)
Ed Tanous1abe55e2018-09-05 08:30:59 -070010{
11 BMCWEB_ROUTE(app, "/redfish/")
Ed Tanousb41187f2019-10-24 16:30:02 -070012 .methods(boost::beast::http::verb::get)(
Ed Tanouscb13a392020-07-25 19:02:03 +000013 [](const crow::Request&, crow::Response& res) {
Ed Tanous1abe55e2018-09-05 08:30:59 -070014 res.jsonValue = {{"v1", "/redfish/v1/"}};
15 res.end();
16 });
Ed Tanous3dac7492017-08-02 13:46:20 -070017}
Ed Tanous1abe55e2018-09-05 08:30:59 -070018} // namespace redfish
19} // namespace crow