From 2374d0956d06881b81fa5b975a1670508841e22c Mon Sep 17 00:00:00 2001 From: dwelle Date: Mon, 28 Dec 2020 12:36:46 +0100 Subject: [PATCH] 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 = {