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