Mercurial > hg > orthanc
diff Core/RestApi/RestApi.h @ 977:2a9e08136860 plugins
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Jun 2014 16:09:41 +0200 |
parents | 6968356679c0 |
children | f1ff2a2f06cd |
line wrap: on
line diff
--- a/Core/RestApi/RestApi.h Mon Jun 30 14:55:43 2014 +0200 +++ b/Core/RestApi/RestApi.h Mon Jun 30 16:09:41 2014 +0200 @@ -32,13 +32,7 @@ #pragma once -#include "../HttpServer/HttpHandler.h" -#include "RestApiPath.h" -#include "RestApiOutput.h" -#include "RestApiGetCall.h" -#include "RestApiPutCall.h" -#include "RestApiPostCall.h" -#include "RestApiDeleteCall.h" +#include "RestApiHierarchy.h" #include <list> @@ -47,6 +41,8 @@ class RestApi : public HttpHandler { private: + RestApiHierarchy root_; + typedef std::list< std::pair<RestApiPath*, RestApiGetCall::Handler> > GetHandlers; typedef std::list< std::pair<RestApiPath*, RestApiPutCall::Handler> > PutHandlers; typedef std::list< std::pair<RestApiPath*, RestApiPostCall::Handler> > PostHandlers;