core-legacy/controllers/api_v1_relays.h
Tobias Reisinger 8679bfe680 add: CORS and OPTIONS
add: 'off' schedule in db init
add: copy db to build dir
2019-09-08 23:24:31 +02:00

15 lines
435 B
C++

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