Sebebeb commited on
Commit
d092e63
Β·
verified Β·
1 Parent(s): 0f1b8ae

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -29,7 +29,7 @@ const MIME = {
29
  };
30
 
31
  // ─── HTTP File Server ─────────────────────────────────────────────────────────
32
- const httpServer = https.createServer(serverOptions, (req, res) => {
33
  let urlPath = req.url.split('?')[0];
34
  if (urlPath === '/' || urlPath === '') urlPath = '/index.html';
35
  if (urlPath === '/admin' || urlPath === '/admin/') urlPath = '/admin/index.html';
 
29
  };
30
 
31
  // ─── HTTP File Server ─────────────────────────────────────────────────────────
32
+ const httpServer = http.createServer(serverOptions, (req, res) => {
33
  let urlPath = req.url.split('?')[0];
34
  if (urlPath === '/' || urlPath === '') urlPath = '/index.html';
35
  if (urlPath === '/admin' || urlPath === '/admin/') urlPath = '/admin/index.html';