17 lines
399 B
C++
17 lines
399 B
C++
#pragma once
|
|
#include "services/Service.h"
|
|
#include "NodeContext.h"
|
|
#include <ArduinoJson.h>
|
|
|
|
class ClusterService : public Service {
|
|
public:
|
|
ClusterService(NodeContext& ctx);
|
|
void registerEndpoints(ApiServer& api) override;
|
|
const char* getName() const override { return "Cluster"; }
|
|
|
|
private:
|
|
NodeContext& ctx;
|
|
|
|
void handleMembersRequest(AsyncWebServerRequest* request);
|
|
};
|