2018-05-30 10:00:02 +00:00
|
|
|
#pragma once
|
|
|
|
#include <drogon/HttpSimpleController.h>
|
|
|
|
using namespace drogon;
|
2018-10-14 07:56:54 +00:00
|
|
|
class ListParaCtl : public drogon::HttpSimpleController<ListParaCtl>
|
2018-05-30 10:00:02 +00:00
|
|
|
{
|
2018-10-14 07:56:54 +00:00
|
|
|
public:
|
2019-05-18 12:39:57 +00:00
|
|
|
virtual void asyncHandleHttpRequest(
|
|
|
|
const HttpRequestPtr &req,
|
|
|
|
std::function<void(const HttpResponsePtr &)> &&callback) override;
|
2018-05-30 10:00:02 +00:00
|
|
|
PATH_LIST_BEGIN
|
2019-05-18 12:39:57 +00:00
|
|
|
// list path definations here;
|
|
|
|
// PATH_ADD("/path","filter1","filter2",...);
|
|
|
|
PATH_ADD("/listpara", Get);
|
2018-05-30 10:00:02 +00:00
|
|
|
PATH_LIST_END
|
|
|
|
};
|