untitled notebook

node v10.24.1
version: 1.0.0
endpointsharetweet
const express = require('express') const app = express() const port = 3000 const middleware = (req, res, next) => { console.log('Hi'); } app.get('/', middleware, (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening on port ${port}!`))
Created from: https://expressjs.com/en/starter/hello-world.html
Loading…

no comments

    sign in to comment