+2
api/src/graphql/handler.rs
+2
api/src/graphql/handler.rs
···
140
141
const fetcher = createGraphiQLFetcher({{
142
url: '/graphql',
143
+
subscriptionUrl: '/graphql/ws?slice={}',
144
headers: {{
145
'X-Slice-Uri': '{}'
146
}}
···
166
</div>
167
</body>
168
</html>"#,
169
+
slice_uri.replace("'", "\\'").replace("\"", "\\\""),
170
slice_uri.replace("'", "\\'").replace("\"", "\\\"")
171
);
172