diff --git a/node-api-docs/README.md b/node-api-docs/README.md index 183b07d..f0c7f46 100644 --- a/node-api-docs/README.md +++ b/node-api-docs/README.md @@ -62,7 +62,7 @@ const projectData = fs.readFileSync('project.sb3'); // or fetch a shared Scratch project: const fetch = require('cross-fetch').default; // or whatever your favorite HTTP library is const id = '437419376'; -const projectMetadata = await (await fetch(`https://trampoline.turbowarp.org/proxy/projects/${id}`)).json(); +const projectMetadata = await (await fetch(`https://trampoline.turbowarp.org/api/projects/${id}`)).json(); const token = projectMetadata.project_token; const projectData = await (await fetch(`https://projects.scratch.mit.edu/${id}?token=${token}`)).arrayBuffer(); ``` diff --git a/node-api-docs/demo.js b/node-api-docs/demo.js index f4d3df2..b6d2a41 100644 --- a/node-api-docs/demo.js +++ b/node-api-docs/demo.js @@ -9,7 +9,7 @@ const Packager = require('../dist/packager'); const run = async () => { // Example of how to fetch() a project from Scratch: const id = '437419376'; - const projectMetadata = await (await fetch(`https://trampoline.turbowarp.org/proxy/projects/${id}`)).json(); + const projectMetadata = await (await fetch(`https://trampoline.turbowarp.org/api/projects/${id}`)).json(); const token = projectMetadata.project_token; const projectData = await (await fetch(`https://projects.scratch.mit.edu/${id}?token=${token}`)).arrayBuffer(); diff --git a/scaffolding-api-docs/README.md b/scaffolding-api-docs/README.md index 052153b..b25b81c 100644 --- a/scaffolding-api-docs/README.md +++ b/scaffolding-api-docs/README.md @@ -163,7 +163,7 @@ Downloading shared Scratch projects can be done manually with something like thi ```js const id = '437419376'; -const projectMetadata = await (await fetch(`https://trampoline.turbowarp.org/proxy/projects/${id}`)).json(); +const projectMetadata = await (await fetch(`https://trampoline.turbowarp.org/api/projects/${id}`)).json(); const token = projectMetadata.project_token; const projectData = await (await fetch(`https://projects.scratch.mit.edu/${id}?token=${token}`)).arrayBuffer(); ```