serving an html file

main
parent 077be04f5e
commit cf0e76f9a3

@ -0,0 +1,5 @@
<h1>Hello Dario from index.html file</h1>
<p>Esta es una prueba de parrafo</p>

@ -4,7 +4,8 @@ const http = require('http');
const server = http.createServer(app);
app.get('/', (req, res) => {
res.send('<h1> Hello Dario!</h1>');
// res.send('<h1> Hello Dario!</h1>');
res.sendFile(__dirname + '/index.html');
});
server.listen(3333, () => {

Loading…
Cancel
Save