23 #ifndef CONTROLLERHANDLER_H_
24 #define CONTROLLERHANDLER_H_
25 #include "Controller.h"
26 #include "RestController.h"
27 #include "AuthHandler.h"
28 #include "Constants.h"
30 #include "XMLSerialize.h"
31 #include "JSONSerialize.h"
33 typedef void* (*toObjectFromJson) (string);
53 vector<RestFunctionParams> params;
56 typedef map<string, RestFunction> resFuncMap;
62 static bool handle(
HttpRequest* req,
HttpResponse& res, map<string, string> urlpattMap, map<string, string> mappattMap,
void* dlib,
63 string ext, resFuncMap rstCntMap, map<string, string> mapMap, map<string, string> urlMap,
string pthwofile);