#pragma once #include using namespace drogon; class JsonTestController : public drogon::HttpSimpleController { public: //TestController(){} virtual void asyncHandleHttpRequest(const HttpRequestPtr &req, const std::function &callback) override; PATH_LIST_BEGIN PATH_ADD("/json", "drogon::GetFilter", "drogon::LocalHostFilter"); PATH_LIST_END };