wip
This commit is contained in:
@@ -119,10 +119,10 @@ const port = 1024;
|
|||||||
const server = http.createServer((req, res) => {
|
const server = http.createServer((req, res) => {
|
||||||
if(req.url === '/') {
|
if(req.url === '/') {
|
||||||
// Serve the HTML file
|
// Serve the HTML file
|
||||||
fs.readFile(path.join(__dirname, 'index.html'), (err, data) => {
|
fs.readFile(path.join(__dirname, 'watcher.html'), (err, data) => {
|
||||||
if(err) {
|
if(err) {
|
||||||
res.writeHead(500);
|
res.writeHead(500);
|
||||||
res.end('Error loading index.html');
|
res.end('Error loading watcher.html');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
res.writeHead(200, {'Content-Type': 'text/html'});
|
res.writeHead(200, {'Content-Type': 'text/html'});
|
||||||
|
|||||||
Reference in New Issue
Block a user