15 lines
443 B
C++
Executable File
15 lines
443 B
C++
Executable File
#pragma once
|
|
|
|
#include <drogon/HttpSimpleController.h>
|
|
using namespace drogon;
|
|
|
|
class JsonTestController:public drogon::HttpSimpleController<JsonTestController>
|
|
{
|
|
public:
|
|
//TestController(){}
|
|
virtual void asyncHandleHttpRequest(const HttpRequestPtr& req,const std::function<void (const HttpResponsePtr &)>&callback)override;
|
|
|
|
PATH_LIST_BEGIN
|
|
PATH_ADD("/json","drogon::GetFilter","drogon::LocalHostFilter");
|
|
PATH_LIST_END
|
|
}; |