Really cool message because I forgot to include the modified webackend.cpp in the last commit.

This commit is contained in:
JoshDW19
2016-02-08 14:25:40 -05:00
parent 849230bf2f
commit 6d8815a220

View File

@@ -1,4 +1,4 @@
// ===============================
// ===============================
// PC-BSD REST API Server
// Available under the 3-clause BSD License
// Written by: Ken Moore <ken@pcbsd.org> 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