wip
This commit is contained in:
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user