diff options
author | Chicago Duan <duanzhijia01@inspur.com> | 2021-06-11 12:09:25 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-06-11 21:40:46 +0300 |
commit | 9552547ce8a48583a7f33fbbdc6748ff02d7661b (patch) | |
tree | 424d938ec695584e179ac134de10f6fe927df25c | |
parent | 5cc148afbd1b936a93d1d902798a9420b3b2e465 (diff) | |
download | bmcweb-9552547ce8a48583a7f33fbbdc6748ff02d7661b.tar.xz |
Redfish: Fix issue of EventDestination
Fix the bug that can't get/patch/delete EventDestination
Tested: It works good and validation has succeeded.
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: Ideb743f9f2a7900a444bc912bfedbb75dfe7c8e7
-rw-r--r-- | redfish-core/lib/event_service.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp index 367b6a2ef8..abc21ec75e 100644 --- a/redfish-core/lib/event_service.hpp +++ b/redfish-core/lib/event_service.hpp @@ -483,7 +483,7 @@ inline void requestRoutesEventDestinationCollection(App& app) inline void requestRoutesEventDestination(App& app) { - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions/<str>/") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/") .privileges({"Login"}) .methods(boost::beast::http::verb::get)( [](const crow::Request&, @@ -535,7 +535,7 @@ inline void requestRoutesEventDestination(App& app) }); /////redfish/v1/EventService/Subscriptions/ // ConfigureManager - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions/<str>/") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/") .privileges({"ConfigureManager"}) .methods(boost::beast::http::verb::patch)( [](const crow::Request& req, @@ -588,7 +588,7 @@ inline void requestRoutesEventDestination(App& app) EventServiceManager::getInstance().updateSubscriptionData(); }); - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions/<str>/") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/") .privileges({"ConfigureManager"}) .methods(boost::beast::http::verb::delete_)( [](const crow::Request&, |