Added release string to API version response
This commit is contained in:
parent
483b0007d1
commit
14889fa35b
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ void Controller::handleAPICommands(JSON::Value & Request, JSON::Value & Response
|
||||||
if (!Request.isMember("minimal") || Request.isMember("config")){
|
if (!Request.isMember("minimal") || Request.isMember("config")){
|
||||||
Response["config"] = Controller::Storage["config"];
|
Response["config"] = Controller::Storage["config"];
|
||||||
Response["config"]["iid"] = instanceId;
|
Response["config"]["iid"] = instanceId;
|
||||||
Response["config"]["version"] = PACKAGE_VERSION;
|
Response["config"]["version"] = PACKAGE_VERSION " " RELEASE;
|
||||||
//add required data to the current unix time to the config, for syncing reasons
|
//add required data to the current unix time to the config, for syncing reasons
|
||||||
Response["config"]["time"] = Util::epoch();
|
Response["config"]["time"] = Util::epoch();
|
||||||
if ( !Response["config"].isMember("serverid")){
|
if ( !Response["config"].isMember("serverid")){
|
||||||
|
|
Loading…
Add table
Reference in a new issue