Try to fix examples API

pull/8432/head
Puru Vijay 4 years ago
parent 03657c23a6
commit 21ac4a6ac9

@ -57,7 +57,7 @@
repl.set({ components }); repl.set({ components });
}); });
} else if (example) { } else if (example) {
fetch(`/examples/${example}.json`).then(async (response) => { fetch(`/examples/api/${example}.json`).then(async (response) => {
if (response.ok) { if (response.ok) {
const data = await response.json(); const data = await response.json();
const components = process_example(data.files); const components = process_example(data.files);

Loading…
Cancel
Save