Skip to content

Conversation

@roeepolegfiverr
Copy link
Contributor

Update rest api endpoints.

take: function (req, res) {
try {
module.exports.take(req.body, function(env) { res.json(env); });
module.exports.take(req.body, function(env) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract this into a method and call it with res as a param in all places

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants