mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] includes trackers for anime torrents
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
const express = require('express');
|
||||
const serverless = require('./serverless');
|
||||
const { initBestTrackers } = require('./lib/magnetHelper');
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(express.static('static', { maxAge: '1y' }));
|
||||
app.use((req, res, next) => serverless(req, res, next));
|
||||
app.listen(process.env.PORT || 7000, () => {
|
||||
console.log(`Started addon at: http://localhost:${process.env.PORT || 7000}`)
|
||||
initBestTrackers()
|
||||
.then(() => console.log(`Started addon at: http://localhost:${process.env.PORT || 7000}`));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user