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