2018-05-30 10:00:02 +00:00
|
|
|
#pragma once
|
|
|
|
#include <drogon/HttpSimpleController.h>
|
|
|
|
using namespace drogon;
|
|
|
|
class ListParaCtl:public drogon::HttpSimpleController<ListParaCtl>
|
|
|
|
{
|
|
|
|
public:
|
2018-06-05 01:38:03 +00:00
|
|
|
virtual void asyncHandleHttpRequest(const HttpRequest& req,const std::function<void (HttpResponse &)> &callback)override;
|
2018-05-30 10:00:02 +00:00
|
|
|
PATH_LIST_BEGIN
|
|
|
|
//list path definations here;
|
|
|
|
//PATH_ADD("/path","filter1","filter2",...);
|
|
|
|
PATH_ADD("/listpara");
|
|
|
|
PATH_LIST_END
|
|
|
|
};
|