add: rename controller command
This commit is contained in:
parent
08699c8817
commit
2be5532778
3 changed files with 11 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
#include <netdb.h>
|
||||
#include <models/controller_dbo.h>
|
||||
#include <config.h>
|
||||
#include "api_v1_controllers.h"
|
||||
using namespace api::v1;
|
||||
|
||||
|
@ -86,6 +87,7 @@ controllers::put_one_by_id(const HttpRequestPtr &req, std::function<void(const H
|
|||
auto resp = HttpResponse::newHttpResponse();
|
||||
if(controllers[0]->update())
|
||||
{
|
||||
controllers[0]->command(config::command_code_set_name, controllers[0]->name);
|
||||
resp = HttpResponse::newHttpJsonResponse(controllers[0]->to_json());
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue