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