blob: 429fb084bdaab03a2a3d40333bedb57ba6a5512a [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 Tanous52cc1122020-07-18 13:51:21 -07009void 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 Tanous1abe55e2018-09-05 08:30:59 -070013 [](const crow::Request& req, crow::Response& res) {
14 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