]> git.cworth.org Git - zombocom-ai/commitdiff
Rewrite primary path as /index.html
authorCarl Worth <cworth@cworth.org>
Wed, 7 Dec 2022 00:45:52 +0000 (16:45 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Dec 2022 00:45:52 +0000 (16:45 -0800)
Since that's what we have Apache configured to look for.

index.js

index 19035310d08d207618ebff39e06b2f0a3e4000ce..abacb5918e09342e14137eea94aad872c92f38b4 100644 (file)
--- 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');
 });