ahmadnassri/forwarded-http

View on GitHub
lib/middleware.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

var forwarded = require('..')

module.exports = function (options) {
  return function middleware (req, res, next) {
    req.forwarded = forwarded(req, options)

    next()
  }
}