mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 20:37:51 +01: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",
|
"monke",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const initPokeTube = function() {
|
||||||
|
sinit(app, config, renderTemplate);
|
||||||
|
initlog("inited super init")
|
||||||
|
init(app);
|
||||||
|
initlog("inited app")
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
res.header("Access-Control-Allow-Origin", "*");
|
res.header("Access-Control-Allow-Origin", "*");
|
||||||
|
@ -136,7 +143,5 @@
|
||||||
initlog("[FAILED] load robots.txt")
|
initlog("[FAILED] load robots.txt")
|
||||||
}
|
}
|
||||||
|
|
||||||
sinit(app, config, renderTemplate);
|
initPokeTube()
|
||||||
|
|
||||||
init(app);
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue