blob: 4230b5f49aadc429119afa9e52e0df905013d2d2 [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 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