| Ed Tanous | 911ac31 | 2017-08-15 09:37:42 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| Ed Tanous | c94ad49 | 2019-10-10 15:39:33 -0700 | [diff] [blame] | 3 | #include <app.h> |
| Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 4 | |
| Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 5 | namespace crow |
| 6 | { | ||||
| 7 | namespace redfish | ||||
| 8 | { | ||||
| Ed Tanous | 23a21a1 | 2020-07-25 04:45:05 +0000 | [diff] [blame] | 9 | inline void requestRoutes(App& app) |
| Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 10 | { |
| 11 | BMCWEB_ROUTE(app, "/redfish/") | ||||
| Ed Tanous | b41187f | 2019-10-24 16:30:02 -0700 | [diff] [blame] | 12 | .methods(boost::beast::http::verb::get)( |
| Ed Tanous | cb13a39 | 2020-07-25 19:02:03 +0000 | [diff] [blame] | 13 | [](const crow::Request&, crow::Response& res) { |
| Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 14 | res.jsonValue = {{"v1", "/redfish/v1/"}}; |
| 15 | res.end(); | ||||
| 16 | }); | ||||
| Ed Tanous | 3dac749 | 2017-08-02 13:46:20 -0700 | [diff] [blame] | 17 | } |
| Ed Tanous | 1abe55e | 2018-09-05 08:30:59 -0700 | [diff] [blame] | 18 | } // namespace redfish |
| 19 | } // namespace crow | ||||