|
@ -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)); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|