This commit is contained in:
Your Name
2024-02-16 17:57:20 -06:00
parent 2b1144ad13
commit cca2b14612

View File

@@ -119,10 +119,10 @@ const port = 1024;
const server = http.createServer((req, res) => {
if(req.url === '/') {
// Serve the HTML file
fs.readFile(path.join(__dirname, 'index.html'), (err, data) => {
fs.readFile(path.join(__dirname, 'watcher.html'), (err, data) => {
if(err) {
res.writeHead(500);
res.end('Error loading index.html');
res.end('Error loading watcher.html');
return;
}
res.writeHead(200, {'Content-Type': 'text/html'});