drogon/examples/simple_example/TestViewCtl.h

17 lines
484 B
C
Raw Normal View History

2018-05-30 05:23:59 +00:00
#pragma once
#include <drogon/HttpSimpleController.h>
using namespace drogon;
2018-10-14 07:56:54 +00:00
class TestViewCtl : public drogon::HttpSimpleController<TestViewCtl>
2018-05-30 05:23:59 +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 05:23:59 +00:00
PATH_LIST_BEGIN
2019-05-18 12:39:57 +00:00
// list path definations here;
// PATH_ADD("/path","filter1","filter2",...);
2018-05-30 05:23:59 +00:00
PATH_ADD("/view");
2019-04-12 13:45:43 +00:00
PATH_ADD("/", Post);
2018-05-30 05:23:59 +00:00
PATH_LIST_END
};