From fdaa277935aa2807218c369cbb323db7f27fd8a2 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 10 May 2021 18:04:02 +0200 Subject: :bug: fix CDN --- src/index.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index d8025968..64fca7e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,9 @@ -import { Server } from "./Server"; +import { CDNServer } from "./Server"; -const server = new Server(); +const server = new CDNServer({ db: "" }); server - .init() + .start() .then(() => { console.log("[Server] started on :" + server.options.port); }) .catch((e) => console.error("[Server] Error starting: ", e)); - -//// server -//// .destroy() -//// .then(() => console.log("[Server] closed.")) -//// .catch((e) => console.log("[Server] Error closing: ", e)); -- cgit 1.5.1