From: Carl Worth Date: Wed, 7 Dec 2022 00:45:52 +0000 (-0800) Subject: Rewrite primary path as /index.html X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=6070590a0e2a9e8682afbf3531f3ed11d77fcf8e;hp=e0b2d89a75bbe68baf6a0d2eb05e3bb7e2e7c242;p=zombocom-ai Rewrite primary path as /index.html Since that's what we have Apache configured to look for. --- diff --git a/index.js b/index.js index 1903531..abacb59 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const http = require('http'); const server = http.createServer(app); const port = 2122; -app.get('/', (req, res) => { +app.get('/index.html', (req, res) => { res.sendFile(__dirname + '/index.html'); });