Refactoring code and structure

This commit is contained in:
2022-01-29 14:48:58 +01:00
parent 416ccab7ef
commit 4d54ea04b9
16 changed files with 132 additions and 44 deletions

View File

@@ -1,18 +1,18 @@
const Koa = require('koa'),
serve = require('koa-static'),
cors = require('@koa/cors'),
{ logger, splash } = require('./lib/logger'),
{ logger, splash } = require('./server/logger'),
{ join } = require('path'),
{ Server } = require('socket.io'),
{ createServer } = require('http'),
{ ytdlpUpdater } = require('./lib/updater'),
{ ytdlpUpdater } = require('./server/updater'),
{
download,
abortDownload,
retriveDownload,
abortAllDownloads,
} = require('./lib/downloader'),
db = require('./lib/db');
} = require('./server/downloader'),
db = require('./server/db');
const app = new Koa()
const server = createServer(app.callback())