mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
14 lines
312 B
TypeScript
14 lines
312 B
TypeScript
import {config} from "./config";
|
|
import {initDb} from './databases/databases';
|
|
import {createServer} from "./app";
|
|
import {Logger} from "./utils/logger";
|
|
|
|
async function init() {
|
|
await initDb();
|
|
|
|
createServer(() => {
|
|
Logger.info("Server started on port " + config.port + ".");
|
|
});
|
|
}
|
|
|
|
init(); |