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