#pragma once #include using namespace drogon; namespace api::v1 { class relays:public drogon::HttpController { public: METHOD_LIST_BEGIN METHOD_ADD(relays::get_all, "/", Get, Options); METHOD_LIST_END static void get_all(const HttpRequestPtr& req, std::function &&callback); }; }