drogon/examples/simple_example/TestViewCtl.h

15 lines
470 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:
virtual void asyncHandleHttpRequest(const HttpRequestPtr &req, const std::function<void(const HttpResponsePtr &)> &callback) override;
2018-05-30 05:23:59 +00:00
PATH_LIST_BEGIN
//list path definations here;
//PATH_ADD("/path","filter1","filter2",...);
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
};