Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Application-level middleware

var express = require('express')
var app = express()

app.use(function (req, res, next) {
  console.log('Time:', Date.now())
  next()
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #middleware
ADD COMMENT
Topic
Name
2+9 =