15 lines
417 B
C++
15 lines
417 B
C++
#pragma once
|
|
#include <drogon/HttpSimpleController.h>
|
|
using namespace drogon;
|
|
class ForwardCtrl : public drogon::HttpSimpleController<ForwardCtrl>
|
|
{
|
|
public:
|
|
virtual void asyncHandleHttpRequest(
|
|
const HttpRequestPtr &req,
|
|
std::function<void(const HttpResponsePtr &)> &&callback) override;
|
|
PATH_LIST_BEGIN
|
|
// list path definitions here;
|
|
PATH_ADD("/forward", Get);
|
|
PATH_LIST_END
|
|
};
|