Express - GET route

PHOTO EMBED

Mon Nov 27 2023 22:29:33 GMT+0000 (Coordinated Universal Time)

Saved by @marianacarvalho #javascript

const express = require('express');
const app = express();

// Our first foute
app.get('/home', (request, response, next) => {
  console.log(request);
  response.send('<h1>Welcome Ironhacker. :)</h1>');
});

// Start the server
app.listen(3000, () => console.log('My first app listening on port 3000! '));
content_copyCOPY