12 lines
371 B
C
12 lines
371 B
C
|
#pragma once
|
||
|
#include <drogon/HttpSimpleController.h>
|
||
|
using namespace drogon;
|
||
|
class BenchmarkCtrl:public drogon::HttpSimpleController<BenchmarkCtrl>
|
||
|
{
|
||
|
public:
|
||
|
virtual void asyncHandleHttpRequest(const HttpRequestPtr& req,const std::function<void (const HttpResponsePtr &)> & callback)override;
|
||
|
PATH_LIST_BEGIN
|
||
|
PATH_ADD("/benchmark",Get);
|
||
|
PATH_LIST_END
|
||
|
};
|