audio_trans/lib/tests/integration_test/server/TestViewCtl.h

17 lines
484 B
C
Raw Normal View History

2025-04-07 11:31:21 +08:00
#pragma once
#include <drogon/HttpSimpleController.h>
using namespace drogon;
class TestViewCtl : public drogon::HttpSimpleController<TestViewCtl>
{
public:
virtual void asyncHandleHttpRequest(
const HttpRequestPtr &req,
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
};