diff --git a/src/server/WebBackend.cpp b/src/server/WebBackend.cpp index 024f9ce..689cf5c 100644 --- a/src/server/WebBackend.cpp +++ b/src/server/WebBackend.cpp @@ -1,4 +1,4 @@ -// =============================== +// =============================== // PC-BSD REST API Server // Available under the 3-clause BSD License // Written by: Ken Moore DEC 2015 @@ -41,6 +41,7 @@ RestOutputStruct::ExitCode WebSocket::AvailableSubsystems(bool allaccess, QJsonO if(QFile::exists("/usr/local/sbin/beadm")){ out->insert("sysadm/beadm", "read/write"); } + // - dispatcher (Internal to server - always available) //"read" is the event notifications, "write" is the ability to queue up jobs @@ -201,6 +202,10 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmBEADMRequest(const QJsonValu ok = true; out->insert("listbes", sysadm::BEADM::listBEs()); } + if(act=="renamebe"){ + ok = true; + out->insert("renamebe", sysadm::BEADM::renameBE(in_args.toObject())); + } } //end of "action" key usage //If nothing done - return the proper code