#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_ADD(relays::get_by_tag, "/tag/{1}", Get, Options); METHOD_LIST_END static void get_all(const HttpRequestPtr& req, std::function &&callback); static void get_by_tag(const HttpRequestPtr& req, std::function &&callback, const std::string& tag); }; }