UNPKG

wett

Version:

wett is a api layer between user api and db. provinding inbuilt user authentication via jwt and a db layer module to easily use multiple db with common functions

10 lines (5 loc) 135 B
module.exports = { ip : function(req){ return req.headers['x-forwarded-for'] || req.connection.remoteAddress; } }