drogon/examples/simple_example/JsonTestController.h

15 lines
385 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-06-05 01:38:03 +00:00
virtual void asyncHandleHttpRequest(const HttpRequest& req,const std::function<void (HttpResponse &)>&callback)override;
2018-05-21 10:54:00 +00:00
PATH_LIST_BEGIN
PATH_ADD("/json");
PATH_LIST_END
};