drogon/examples/static_link_example/TestViewCtl.h

14 lines
420 B
C
Raw Normal View History

2018-05-30 05:23:59 +00:00
#pragma once
#include <drogon/HttpSimpleController.h>
using namespace drogon;
class TestViewCtl:public drogon::HttpSimpleController<TestViewCtl>
{
public:
virtual void asyncHandleHttpRequest(const HttpRequest& req,std::function<void (HttpResponse &)>callback)override;
PATH_LIST_BEGIN
//list path definations here;
//PATH_ADD("/path","filter1","filter2",...);
PATH_ADD("/view");
PATH_LIST_END
};