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