added state fetch api->ws route