MXS-1220: Add more information to the /maxscale/ resource

The /maxscale/ resource now has values for most of the configuration
parameters in the [maxscale] section as well as the version, commit and
uptime information.
This commit is contained in:
Markus Mäkelä
2017-05-15 09:59:38 +03:00
parent 551f635f50
commit adbf537d80
3 changed files with 41 additions and 15 deletions

View File

@ -434,7 +434,7 @@ HttpResponse cb_get_session(const HttpRequest& request)
HttpResponse cb_maxscale(const HttpRequest& request)
{
return HttpResponse(MHD_HTTP_OK, config_paths_to_json(request.host()));
return HttpResponse(MHD_HTTP_OK, config_maxscale_to_json(request.host()));
}
HttpResponse cb_logs(const HttpRequest& request)