- response.writeHead(200, { 'Content-Type': 'text/html' })
- response.write(Server.bootstrapp)
- response.end()
+ require('fs').readFile('./bootstrapp.html', (err, data) => {
+ if (err) {
+ response.writeHead(500)
+ response.end()
+ }
+ else {
+ response.writeHead(200, { 'Content-Type': 'text/html' })
+ response.write(data)
+ response.end()
+ }
+ })