diff --git a/public/index.html b/public/index.html index ce08dd3..beb21e1 100644 --- a/public/index.html +++ b/public/index.html @@ -50,7 +50,7 @@

Auto Discovery

-

UDP-based node discovery with automatic cluster membership on port 4210

+

UDP-based node discovery with automatic cluster membership

Health Monitoring

@@ -86,17 +86,17 @@ class HelloService : public Service { public: HelloService() {} - const char* getName() const override { return "hello"; } + const char* getName() const override { return "HelloService"; } void registerEndpoints(ApiServer& api) override { - api.addEndpoint("/api/hello", HTTP_GET, [](AsyncWebServerRequest* req) { + api.registerEndpoint("/api/hello", HTTP_GET, [](AsyncWebServerRequest* req) { req->send(200, "application/json", "{\"message\":\"hello\"}"); }); } void registerTasks(TaskManager& taskManager) override { taskManager.registerTask("heartbeat", 1000, [this]() { this->heartbeat(); }); - } + } private: void heartbeat() { @@ -111,7 +111,7 @@ Spore spore({ void setup() { spore.setup(); - spore.addService(new HelloService()); + spore.registerService(new HelloService()); spore.begin(); } @@ -124,8 +124,8 @@ void loop() {

Technical Specifications

@@ -178,7 +178,7 @@ void loop() {
  • Frontend: Vanilla JavaScript, CSS3, HTML5
  • Architecture: Custom component-based framework
  • -
    +
    register