<commit_before>var express = require('express');
var router = express.Router();
var users_service_URL = "http://172.16.31.10"

router.post('/auth', function(req,res,next){
  res.redirect(users_service_URL + '/auth')
})

router.post('/balance/add', function(req,res,next){
  res.redirect(users_service_URL + '/balance/add')
})

router.post('/portfolio', function(req,res,next){
  res.redirect(users_service_URL + '/portfolio')
})

router.post('/portfolio/add', function(req,res,next){
  res.redirect(users_service_URL + '/portfolio/add')
})

router.post('/portfolio/close/:action_id', function(req,res,next){
  res.redirect(users_service_URL + '/portfolio/close')
})

router.post('/watchlist', function(req,res,next){
  res.redirect(users_service_URL + '/watchlist')
})

router.post('/watchlist/add', function(req,res,next){
  res.redirect(users_service_URL + '/watchlist/add')
})

router.post('/watchlist/remove', function(req,res,next){
  res.redirect(users_service_URL + '/watchlist/remove')
})

router.post('/history', function(req,res,next){
  res.redirect(users_service_URL + '/history')
})

router.post('/auth/facebook', function(req,res,next){
  res.redirect(users_service_URL + '/auth/facebook')
})

module.exports = router;
<commit_msg>alterações no reencaminhamento de pedidos post<commit_after>var express = require('express');
var router = express.Router();
var users_service_URL = "http://172.16.31.10"
var request = require('request')

router.post('/auth', function(req,res,next){
  res.redirect(307, users_service_URL + '/auth')
  request({url: 'users_service_URL' + '/auth', headers: req.headers, body: req.body }, function(err, remoteResponse, remoteBody){
    if(err) {return res.status(500).end("Error");}
    res.writeHead(remoteResponse.headers);
res.end(remoteBody)
})
})

router.post('/balance/add', function(req,res,next){
  res.redirect(users_service_URL + '/balance/add')
})

router.post('/portfolio', function(req,res,next){
  res.redirect(users_service_URL + '/portfolio')
})

router.post('/portfolio/add', function(req,res,next){
  res.redirect(users_service_URL + '/portfolio/add')
})

router.post('/portfolio/close/:action_id', function(req,res,next){
  res.redirect(users_service_URL + '/portfolio/close')
})

router.post('/watchlist', function(req,res,next){
  res.redirect(users_service_URL + '/watchlist')
})

router.post('/watchlist/add', function(req,res,next){
  res.redirect(users_service_URL + '/watchlist/add')
})

router.post('/watchlist/remove', function(req,res,next){
  res.redirect(users_service_URL + '/watchlist/remove')
})

router.post('/history', function(req,res,next){
  res.redirect(users_service_URL + '/history')
})

router.post('/auth/facebook', function(req,res,next){
  res.redirect(users_service_URL + '/auth/facebook')
})

module.exports = router;

{'fraction_non_alphanumeric': 0.1891025641025641, 'fraction_numerical': 0.008547008547008548, 'mean_word_length': 6.411609498680739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7185032', 'n_tokens_mistral': 959, 'n_tokens_neox': 945, 'n_words': 126}