2019-05-09 08:26:50 +00:00
|
|
|
#pragma once
|
|
|
|
#include <drogon/HttpSimpleController.h>
|
|
|
|
using namespace drogon;
|
2019-05-18 12:39:57 +00:00
|
|
|
class ForwardCtrl : public drogon::HttpSimpleController<ForwardCtrl>
|
2019-05-09 08:26:50 +00:00
|
|
|
{
|
2019-05-18 12:39:57 +00:00
|
|
|
public:
|
|
|
|
virtual void asyncHandleHttpRequest(
|
|
|
|
const HttpRequestPtr &req,
|
|
|
|
std::function<void(const HttpResponsePtr &)> &&callback) override;
|
2019-05-09 08:26:50 +00:00
|
|
|
PATH_LIST_BEGIN
|
2019-05-18 12:39:57 +00:00
|
|
|
// list path definitions here;
|
|
|
|
PATH_ADD("/forward", Get);
|
2019-05-09 08:26:50 +00:00
|
|
|
PATH_LIST_END
|
|
|
|
};
|