diff options
| author | Comment <tim@gray.(none)> | 2013-08-20 23:50:56 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-08-20 23:50:56 +0100 |
| commit | 88a96ed5ba26296f9a9a19951ad453ebd0b1196e (patch) | |
| tree | 1880fe7b97bf3fd104bc0fe43c03aaab0381b261 /rotord/src/rotord.cpp | |
| parent | 95295030238e63890b6ea3113a2741b843e0b8c1 (diff) | |
listnode request in API
Diffstat (limited to 'rotord/src/rotord.cpp')
| -rwxr-xr-x | rotord/src/rotord.cpp | 7 |
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") { |
