From eee3094197ea22c66de7971e46ee5ef22cd73556 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Mon, 6 Jul 2015 14:38:44 +0300 Subject: [PATCH] API: Add the get_snitch command This adds the get_snitch_name command. Signed-off-by: Amnon Heiman --- api/endpoint_snitch.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/endpoint_snitch.cc b/api/endpoint_snitch.cc index ca95695e23..2bbb9fc299 100644 --- a/api/endpoint_snitch.cc +++ b/api/endpoint_snitch.cc @@ -18,8 +18,7 @@ void set_endpoint_snitch(http_context& ctx, routes& r) { }); httpd::endpoint_snitch_info_json::get_snitch_name.set(r, [] (const_req req) { - //TBD - return ""; + return locator::i_endpoint_snitch::get_local_snitch_ptr()->get_name(); }); }