Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require('http');
- exports.run = function ( request, response )
- {
- http.get('http://api.backendless.com/', function (res) {
- var body = '';
- res.on('data', function (chunk) {
- body += chunk;
- });
- res.on('end', function () {
- response.send( body );
- });
- res.resume();
- }).on('error', function(err) {
- response.status(500).send(err.message);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement