From 980848a176c6e4d019d576b95f005ad49a791e44 Mon Sep 17 00:00:00 2001 From: Reinaldo Costa Date: Tue, 2 Apr 2024 16:14:34 -0300 Subject: [PATCH] fix: server listen --- index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index 68ad35d..4b938e8 100644 --- a/index.ts +++ b/index.ts @@ -1,6 +1,5 @@ import { createServer } from 'node:http' -const unused = 'It will generate an PR annotation' const host = 'localhost' const port = 8080 @@ -9,6 +8,6 @@ const server = createServer((req, res) => { res.end() }) -server.listen(port, host, () => { - console.log(`Server is running on http://${host}:${port}`) +server.listen(port, () => { + console.log(`Server is running on port :${port}`) })