Browse Source

Fix bug in API handles

fastled
Xose Pérez 7 years ago
parent
commit
c0c4abfbf0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/web.ino

+ 1
- 1
code/espurna/web.ino View File

@ -695,7 +695,7 @@ void apiRegister(const char * url, const char * key, apiGetCallbackFunction getF
// Bind call // Bind call
unsigned int methods = HTTP_GET; unsigned int methods = HTTP_GET;
if (putFn != NULL) methods += HTTP_PUT; if (putFn != NULL) methods += HTTP_PUT;
_server->on(url, methods, _bindAPI(_apis.size() - 1));
_server->on(buffer, methods, _bindAPI(_apis.size() - 1));
} }


Loading…
Cancel
Save