@@ -30,7 +30,7 @@ async function getCategories() {
3030 const categories = [ ] ;
3131 const options = {
3232 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' ,
3434 method : 'GET' ,
3535 headers : {
3636 ...headers ,
@@ -205,7 +205,7 @@ async function addAssetsToProject(assets, response, project) {
205205 // for assets files that are not .vert or .frag extension
206206 project . files . push ( {
207207 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 } ` ,
209209 id : fileID ,
210210 _id : fileID ,
211211 children : [ ] ,
@@ -223,7 +223,7 @@ async function addAssetsToProject(assets, response, project) {
223223async function createProjectsInP5user ( projectsInAllCategories ) {
224224 const options = {
225225 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' ,
227227 method : 'GET' ,
228228 headers : {
229229 ...headers ,
@@ -364,7 +364,7 @@ async function getp5User() {
364364 const categories = await getCategories ( ) ;
365365 const sketchesInCategories = await getSketchesInCategories ( categories ) ;
366366 const sketchContent = await getSketchContent ( sketchesInCategories ) ;
367- const projectsInUser = createProjectsInP5user ( sketchContent ) ;
367+ const projectsInUser = await createProjectsInP5user ( sketchContent ) ;
368368 return projectsInUser ;
369369}
370370
0 commit comments