From feab4b59c9a9e9fd29f47bc57dc8a7354e369ce6 Mon Sep 17 00:00:00 2001 From: MathewManu Date: Tue, 17 Feb 2015 18:01:10 +0530 Subject: [PATCH 1/2] Update RESTServer.cpp --- ImageServer/RESTServer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ImageServer/RESTServer.cpp b/ImageServer/RESTServer.cpp index 87f2f7c..1635547 100644 --- a/ImageServer/RESTServer.cpp +++ b/ImageServer/RESTServer.cpp @@ -39,6 +39,8 @@ RestServer::RestServer(const http::uri& url) : m_listener(http_listener(url)), m //Have function pointer table and call them. //Ideally static method. Or else //A method parser which can be used. + + //manu testing fork & pull m_listener.support(methods::GET, std::tr1::bind(&RestServer::handle_get, @@ -57,4 +59,4 @@ RestServer::RestServer(const http::uri& url) : m_listener(http_listener(url)), m std::tr1::bind(&RestServer::handle_get, this, std::tr1::placeholders::_1)); -} \ No newline at end of file +} From 10272a3a55c884cff7784867d8b13e2caea9468a Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 17 Feb 2015 18:18:03 +0530 Subject: [PATCH 2/2] testing the git commit command --- ImageServer/RESTServer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ImageServer/RESTServer.cpp b/ImageServer/RESTServer.cpp index 87f2f7c..9b619ac 100644 --- a/ImageServer/RESTServer.cpp +++ b/ImageServer/RESTServer.cpp @@ -39,22 +39,22 @@ RestServer::RestServer(const http::uri& url) : m_listener(http_listener(url)), m //Have function pointer table and call them. //Ideally static method. Or else //A method parser which can be used. - + //testing push manu m_listener.support(methods::GET, std::tr1::bind(&RestServer::handle_get, this, std::tr1::placeholders::_1)); m_listener.support(methods::PUT, - std::tr1::bind(&RestServer::handle_get, + std::tr1::bind(&RestServer::handle_put, this, std::tr1::placeholders::_1)); m_listener.support(methods::POST, - std::tr1::bind(&RestServer::handle_get, + std::tr1::bind(&RestServer::handle_post, this, std::tr1::placeholders::_1)); m_listener.support(methods::DEL, - std::tr1::bind(&RestServer::handle_get, + std::tr1::bind(&RestServer::handle_del, this, std::tr1::placeholders::_1)); -} \ No newline at end of file +}