Mashape/mockbin

View on GitHub
lib/routes/echo.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module.exports = function echo(req, res) {
    res.type(req.headers["content-type"] || "text/plain");
    res.send(req.body || "");
};