15 lines
470 B
C++
Executable File
15 lines
470 B
C++
Executable File
#pragma once
|
|
#include <drogon/HttpSimpleController.h>
|
|
using namespace drogon;
|
|
class TestViewCtl : public drogon::HttpSimpleController<TestViewCtl>
|
|
{
|
|
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("/view");
|
|
PATH_ADD("/", Post);
|
|
PATH_LIST_END
|
|
};
|