diff --git a/src/c/service.c b/src/c/service.c index 23ba4d86..1b6913b4 100644 --- a/src/c/service.c +++ b/src/c/service.c @@ -818,6 +818,9 @@ static void startConfigured (devsdk_service_t *svc, const devsdk_timeout *deadli svc->discovery_wrapper = (auth_wrapper_t){ svc, svc->secretstore, edgex_device_handler_discoveryv2}; edgex_rest_server_register_handler (svc->daemon, EDGEX_DEV_API3_DISCOVERY, DevSDK_Post, &svc->discovery_wrapper, http_auth_wrapper); + svc->discovery_delete_wrapper = (auth_wrapper_t){ svc, svc->secretstore, edgex_device_handler_discovery_delete}; + edgex_rest_server_register_handler (svc->daemon, EDGEX_DEV_API3_DISCOVERY_DELETE, DevSDK_Delete, &svc->discovery_delete_wrapper, http_auth_wrapper); + svc->config_wrapper = (auth_wrapper_t){ svc, svc->secretstore, edgex_device_handler_configv2}; edgex_rest_server_register_handler (svc->daemon, EDGEX_DEV_API3_CONFIG, DevSDK_Get, &svc->config_wrapper, http_auth_wrapper); diff --git a/src/c/service.h b/src/c/service.h index 6e1c0038..c082f035 100644 --- a/src/c/service.h +++ b/src/c/service.h @@ -82,6 +82,7 @@ struct devsdk_service_t auth_wrapper_t callback_watcher_name_wrapper; auth_wrapper_t device_name_wrapper; auth_wrapper_t discovery_wrapper; + auth_wrapper_t discovery_delete_wrapper; auth_wrapper_t metrics_wrapper; auth_wrapper_t config_wrapper; auth_wrapper_t secret_wrapper;