API: Add the get_snitch command

This adds the get_snitch_name command.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
This commit is contained in:
Amnon Heiman
2015-07-06 14:38:44 +03:00
parent 524e0a00df
commit eee3094197

View File

@@ -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();
});
}