Change-Id: Ia73d2d49ac888770f78d65a6258c0184b6aaa2da
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
goto error;
/* check api name */
goto error;
/* check api name */
- if (afb_apiset_has(apiset, apiws->api, 1)) {
+ if (!afb_apiset_lookup(apiset, apiws->api, 1)) {
ERROR("Can't provide ws-server for %s: API %s doesn't exist", path, apiws->api);
goto error2;
}
ERROR("Can't provide ws-server for %s: API %s doesn't exist", path, apiws->api);
goto error2;
}