mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 19:57:43 +08:00
14 lines
453 B
C++
Executable File
14 lines
453 B
C++
Executable File
#pragma once
|
|
#include <drogon/HttpSimpleController.h>
|
|
using namespace drogon;
|
|
class ListParaCtl : public drogon::HttpSimpleController<ListParaCtl>
|
|
{
|
|
public:
|
|
virtual void asyncHandleHttpRequest(const HttpRequestPtr &req, const std::function<void(const HttpResponsePtr &)> &callback) override;
|
|
PATH_LIST_BEGIN
|
|
//list path definations here;
|
|
//PATH_ADD("/path","filter1","filter2",...);
|
|
PATH_ADD("/listpara",Get);
|
|
PATH_LIST_END
|
|
};
|