dwelle 4 роки тому
джерело
коміт
2374d0956d
1 змінених файлів з 5 додано та 0 видалено
  1. 5
    0
      src/index.ts

+ 5
- 0
src/index.ts Переглянути файл

@@ -10,12 +10,17 @@ const socketDebug = debug("socket");
10 10
 const app = express();
11 11
 const port = process.env.PORT || 80; // default port to listen
12 12
 
13
+app.get("/", (req, res) => {
14
+  res.send("Excalidraw collab server is up :)");
15
+});
16
+
13 17
 const server = http.createServer(app);
14 18
 
15 19
 server.listen(port, () => {
16 20
   serverDebug(`listening on port: ${port}`);
17 21
 });
18 22
 
23
+
19 24
 const io = socketIO(server, {
20 25
   handlePreflightRequest: function (req, res) {
21 26
     var headers = {

Завантаження…
Відмінити
Зберегти