From 88a96ed5ba26296f9a9a19951ad453ebd0b1196e Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 20 Aug 2013 23:50:56 +0100 Subject: listnode request in API --- rotord/src/rotord.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rotord/src/rotord.cpp') 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") { -- cgit v1.2.3