9 lines
370 B
C++
Executable File
9 lines
370 B
C++
Executable File
#include "TestViewCtl.h"
|
|
void TestViewCtl::asyncHandleHttpRequest(const HttpRequestPtr& req,const 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);
|
|
} |