drogon/examples/simple_example/JsonTestController.h

15 lines
443 B
C
Raw Normal View History

2018-05-21 10:54:00 +00:00
#pragma once
#include <drogon/HttpSimpleController.h>
using namespace drogon;
class JsonTestController:public drogon::HttpSimpleController<JsonTestController>
{
public:
//TestController(){}
2018-08-26 08:25:35 +00:00
virtual void asyncHandleHttpRequest(const HttpRequestPtr& req,const std::function<void (const HttpResponsePtr &)>&callback)override;
2018-05-21 10:54:00 +00:00
PATH_LIST_BEGIN
2018-08-31 07:17:09 +00:00
PATH_ADD("/json","drogon::GetFilter","drogon::LocalHostFilter");
2018-05-21 10:54:00 +00:00
PATH_LIST_END
};