Skip to content

Commit 8b80054

Browse files
committed
chore: Refactor server to use new API handler for Deno's serve method
1 parent 71b1ec5 commit 8b80054

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
console.log("Booting up...");
44

55
import { redis } from "./db/database.ts";
6-
import { io } from "./libs/websockets.ts";
6+
import { handler } from "./libs/apiServer.ts";
77

88
const port = 5000;
99

@@ -29,6 +29,6 @@ Deno.stat('./uploads')
2929
//serve(handler, { port: port });
3030

3131
Deno.serve({
32-
handler: io.handler(),
32+
handler,
3333
port: port,
3434
});

0 commit comments

Comments
 (0)