mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 01:34:43 -05:00
add the initpoketube function :3
This commit is contained in:
parent
621e098183
commit
910250047b
1 changed files with 8 additions and 3 deletions
11
server.js
11
server.js
|
@ -80,6 +80,13 @@
|
|||
"monke",
|
||||
];
|
||||
|
||||
const initPokeTube = function() {
|
||||
sinit(app, config, renderTemplate);
|
||||
initlog("inited super init")
|
||||
init(app);
|
||||
initlog("inited app")
|
||||
}
|
||||
|
||||
try {
|
||||
app.use(function (req, res, next) {
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
|
@ -136,7 +143,5 @@
|
|||
initlog("[FAILED] load robots.txt")
|
||||
}
|
||||
|
||||
sinit(app, config, renderTemplate);
|
||||
|
||||
init(app);
|
||||
initPokeTube()
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue