summaryrefslogtreecommitdiff
path: root/rotord/src/rotord.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-08-20 23:50:56 +0100
committerComment <tim@gray.(none)>2013-08-20 23:50:56 +0100
commit88a96ed5ba26296f9a9a19951ad453ebd0b1196e (patch)
tree1880fe7b97bf3fd104bc0fe43c03aaab0381b261 /rotord/src/rotord.cpp
parent95295030238e63890b6ea3113a2741b843e0b8c1 (diff)
listnode request in API
Diffstat (limited to 'rotord/src/rotord.cpp')
-rwxr-xr-xrotord/src/rotord.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/rotord/src/rotord.cpp b/rotord/src/rotord.cpp
index 6130cfc..64d59cd 100755
--- a/rotord/src/rotord.cpp
+++ b/rotord/src/rotord.cpp
@@ -108,6 +108,13 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
status=HTTPResponse::HTTP_OK;
}
}
+ else if (command[0]=="listnode") {
+ XML.pushTag("rotor");
+ if (request.getMethod()=="GET") {
+ Node_factory factory;
+ if (factory.list_node(body,XML)) status=HTTPResponse::HTTP_OK;
+ }
+ }
else if (command[0]=="listrenders") {
XML.pushTag("rotor");
if (request.getMethod()=="GET") {