diff --git a/src/libpoketube/init/superinit.js b/src/libpoketube/init/superinit.js index 275d4fbe..1f9fcd90 100644 --- a/src/libpoketube/init/superinit.js +++ b/src/libpoketube/init/superinit.js @@ -5,7 +5,7 @@ function initlog(args) { function init(app, config, rendertemplate) { initlog("Starting superinit"); initlog("[START] Load pages"); - if ( Math.random() < 0.5 ){ + if (Math.random() < 0.5) { initlog("https://poketube.fun/watch?v=lpiB2wMc49g"); } @@ -26,6 +26,10 @@ function init(app, config, rendertemplate) { ); initlog("Loaded Download and channel pages"); + initlog("Loading api pages"); + require("../init/pages-api.js")(app, config, rendertemplate); + initlog("loaded api pages"); + initlog("Loading static pages"); require("../init/pages-static.js")(app, config, rendertemplate); initlog("loaded static pages");