Mashape/mockbin

View on GitHub
lib/routes/ips.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module.exports = {
    one: function oneIP(req, res, next) {
        res.body = req.ip;

        next();
    },

    all: function allIPs(req, res, next) {
        res.body = req.forwarded.for;

        next();
    },
};