aboutsummaryrefslogblamecommitdiffstats
path: root/app/scripts/lib/createOriginMiddleware.js
blob: f8bdb2dc2834a85ce2d99e80d0a9f69737290bed (plain) (tree)
1
2
3
4
5
6
7
8
9


                                       
                                              
                                                          
                       

          
 
// append dapp origin domain to request
module.exports = createOriginMiddleware

function createOriginMiddleware ({ origin }) {
  return function originMiddleware (req, res, next, end) {
    req.origin = origin
    next()
  }
}