<commit_before>var router = new require('express').Router()
  , $fh    = require('fh-mbaas-api')
;

router.route('/service').post(function(req, res, next){
  $fh.service({
    guid :  req.body.guid,
    path:   req.body.path, 
    method: req.body.method,
    params: req.body.params || {}
  }, function(err, body, response) {
    if ( err ) {
      return next(err);
    } else {
      res.send(body);
    }
  });
});


exports.router = router;<commit_msg>added headers option<commit_after>var router = new require('express').Router()
  , $fh    = require('fh-mbaas-api')
;

router.route('/service').post(function(req, res, next){
  $fh.service({
    guid :  req.body.guid,
    path:   req.body.path, 
    method: req.body.method,
    params: req.body.params || {},
    headers: req.body.headers || {}
  }, function(err, body, response) {
    if ( err ) {
      return next(err);
    } else {
      res.send(body);
    }
  });
});


exports.router = router;
{'fraction_non_alphanumeric': 0.18789144050104384, 'fraction_numerical': 0.0, 'mean_word_length': 2.76078431372549, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1728651', 'n_tokens_mistral': 344, 'n_tokens_neox': 332, 'n_words': 61}