if (apiws == NULL)
goto error;
+ /* check api name */
+ if (afb_apiset_has(apiset, apiws->api, 1)) {
+ ERROR("Can't provide ws-server for %s: API %s doesn't exist", path, apiws->api);
+ goto error2;
+ }
+
/* connect for serving */
rc = api_ws_server_connect(apiws);
if (rc < 0)