Style
This commit is contained in:
@@ -178,6 +178,16 @@ const infoServer = https.createServer(httpsOptions, (req, res) => {
|
||||
res.end(data);
|
||||
}
|
||||
});
|
||||
} else if (req.url === '/style.css') {
|
||||
fs.readFile('./public/style.css', (err, data) => {
|
||||
if (err) {
|
||||
res.writeHead(404);
|
||||
res.end('Not found');
|
||||
} else {
|
||||
res.writeHead(200, {'Content-Type': 'text/css'});
|
||||
res.end(data);
|
||||
}
|
||||
});
|
||||
} else if (req.url === '/api/status') {
|
||||
const status = {
|
||||
clients: connectedClients,
|
||||
|
||||
Reference in New Issue
Block a user