@@ -30,7 +30,7 @@ async function getCategories() {
30
30
const categories = [ ] ;
31
31
const options = {
32
32
url :
33
- 'https://api.github.com/repos/processing/p5.js-website/contents/src/data/examples/en' ,
33
+ 'https://api.github.com/repos/processing/p5.js-website-legacy /contents/src/data/examples/en' ,
34
34
method : 'GET' ,
35
35
headers : {
36
36
...headers ,
@@ -205,7 +205,7 @@ async function addAssetsToProject(assets, response, project) {
205
205
// for assets files that are not .vert or .frag extension
206
206
project . files . push ( {
207
207
name : assetName ,
208
- url : `https://cdn.jsdelivr.net/gh/processing/p5.js-website@main/src/data/examples/assets/${ assetName } ` ,
208
+ url : `https://cdn.jsdelivr.net/gh/processing/p5.js-website-legacy @main/src/data/examples/assets/${ assetName } ` ,
209
209
id : fileID ,
210
210
_id : fileID ,
211
211
children : [ ] ,
@@ -223,7 +223,7 @@ async function addAssetsToProject(assets, response, project) {
223
223
async function createProjectsInP5user ( projectsInAllCategories ) {
224
224
const options = {
225
225
url :
226
- 'https://api.github.com/repos/processing/p5.js-website/contents/src/data/examples/assets' ,
226
+ 'https://api.github.com/repos/processing/p5.js-website-legacy /contents/src/data/examples/assets' ,
227
227
method : 'GET' ,
228
228
headers : {
229
229
...headers ,
@@ -364,7 +364,7 @@ async function getp5User() {
364
364
const categories = await getCategories ( ) ;
365
365
const sketchesInCategories = await getSketchesInCategories ( categories ) ;
366
366
const sketchContent = await getSketchContent ( sketchesInCategories ) ;
367
- const projectsInUser = createProjectsInP5user ( sketchContent ) ;
367
+ const projectsInUser = await createProjectsInP5user ( sketchContent ) ;
368
368
return projectsInUser ;
369
369
}
370
370
0 commit comments