#pragma once #include using namespace drogon; class Client : public drogon::HttpController { public: METHOD_LIST_BEGIN METHOD_ADD(Client::get, "{1}", Get); METHOD_ADD(Client::post, "{1}", Post); METHOD_LIST_END void get(const HttpRequestPtr &req, std::function &&callback, std::string key); void post(const HttpRequestPtr &req, std::function &&callback, std::string key); };