From c0c4abfbf0d20764861baa25cd481a8f6644a114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 28 Mar 2017 10:19:12 +0200 Subject: [PATCH] Fix bug in API handles --- code/espurna/web.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/web.ino b/code/espurna/web.ino index 08a37c4f..f48c16c0 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -695,7 +695,7 @@ void apiRegister(const char * url, const char * key, apiGetCallbackFunction getF // Bind call unsigned int methods = HTTP_GET; if (putFn != NULL) methods += HTTP_PUT; - _server->on(url, methods, _bindAPI(_apis.size() - 1)); + _server->on(buffer, methods, _bindAPI(_apis.size() - 1)); }