From 2374d0956d06881b81fa5b975a1670508841e22c Mon Sep 17 00:00:00 2001 From: dwelle Date: Mon, 28 Dec 2020 12:36:46 +0100 Subject: [PATCH 1/3] add root route --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index ac9f2a7..de6380c 100755 --- a/src/index.ts +++ b/src/index.ts @@ -10,12 +10,17 @@ const socketDebug = debug("socket"); const app = express(); const port = process.env.PORT || 80; // default port to listen +app.get("/", (req, res) => { + res.send("Excalidraw collab server is up :)"); +}); + const server = http.createServer(app); server.listen(port, () => { serverDebug(`listening on port: ${port}`); }); + const io = socketIO(server, { handlePreflightRequest: function (req, res) { var headers = { From dba4e6e1376e46869c8ccdf605cb3af5becd0cff Mon Sep 17 00:00:00 2001 From: David Luzar Date: Mon, 28 Dec 2020 12:37:32 +0100 Subject: [PATCH 2/3] Update src/index.ts --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index de6380c..8174daa 100755 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,6 @@ server.listen(port, () => { serverDebug(`listening on port: ${port}`); }); - const io = socketIO(server, { handlePreflightRequest: function (req, res) { var headers = { From 480c9ff00a91d4590a72d2c9d111a3c9b05bca84 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Mon, 28 Dec 2020 12:37:47 +0100 Subject: [PATCH 3/3] Update src/index.ts Co-authored-by: Lipis --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8174daa..01ba520 100755 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ const app = express(); const port = process.env.PORT || 80; // default port to listen app.get("/", (req, res) => { - res.send("Excalidraw collab server is up :)"); + res.send("Excalidraw collaboration server is up :)"); }); const server = http.createServer(app);