/* API MODULE Copyright (C) 2016-2019 by Xose PĂ©rez */ #pragma once #include "espurna.h" #include "web.h" #include #if WEB_SUPPORT && API_SUPPORT #include #include using api_get_callback_f = std::function; using api_put_callback_f = std::function ; void apiRegister(const char * key, api_get_callback_f getFn, api_put_callback_f putFn = nullptr); void apiSetup(); #endif // API_SUPPORT == 1