audio_trans/lib/tests/integration_test/server/TestViewCtl.cc

12 lines
381 B
C++
Raw Normal View History

2025-04-07 11:31:21 +08:00
#include "TestViewCtl.h"
void TestViewCtl::asyncHandleHttpRequest(
const HttpRequestPtr &req,
std::function<void(const HttpResponsePtr &)> &&callback)
{
// write your application logic here
drogon::HttpViewData data;
data.insert("title", std::string("TestView"));
auto res = drogon::HttpResponse::newHttpViewResponse("TestView", data);
callback(res);
}