Skip to content

Commit

Permalink
concat()
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 9, 2024
1 parent 1580343 commit 5984a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init/REST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ Mycila::Task initRestApiTask("Init REST API", [](void* params) {
JsonObject root = response->getRoot();

String base = "http://";
base += ESPConnect.getIPAddress().toString();
base += "/api";
base.concat(ESPConnect.getIPAddress().toString());
base.concat("/api");

root["config"] = base + "/config";
root["config/backup"] = base + "/config/backup";
Expand Down

0 comments on commit 5984a87

Please sign in to comment.