18 lines
443 B
C++
18 lines
443 B
C++
#pragma once
|
|
#include <drogon/HttpController.h>
|
|
using namespace drogon;
|
|
namespace api
|
|
{
|
|
namespace v1
|
|
{
|
|
class relays:public drogon::HttpController<relays>
|
|
{
|
|
public:
|
|
METHOD_LIST_BEGIN
|
|
METHOD_ADD(relays::get_all, "/", Get);
|
|
METHOD_LIST_END
|
|
|
|
static void get_all(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback);
|
|
};
|
|
}
|
|
}
|