txtorg commited on
Commit
9d66308
·
verified ·
1 Parent(s): 86712fb

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +4 -0
server.js CHANGED
@@ -99,6 +99,10 @@ app.get("/next", (req, res) => {
99
  res.json({ message: "Skipped to next video" });
100
  });
101
 
 
 
 
 
102
  // Serve HLS files
103
  app.use("/hls", express.static(hlsFolder));
104
 
 
99
  res.json({ message: "Skipped to next video" });
100
  });
101
 
102
+ app.get("/", (req, res) => {
103
+ res.sendFile(path.join(__dirname, "public", "index.html"));
104
+ });
105
+
106
  // Serve HLS files
107
  app.use("/hls", express.static(hlsFolder));
108