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