<commit_before>'use strict';

var express = require('express');
var controller = require('./players.controller');
var middleware = require('../middleware');
var players = require('../../components/players');
var router = express.Router();

router.route('/')
	.all(function(req, res, next) {
	  next();
	})
	.get(controller.index)
	.post(controller.create);

router.param('player_id', middleware.idInterceptor(players.Player, 'player'));
router.param('playerUniqueIdentifier', middleware.playerUniqueIdentifierInterceptor('player'));
router.param('teamName', middleware.teamNameInterceptor('team'));

router.route('/:player_id')
	.all(function(req, res, next) {
	  next();
	})
	.get(controller.read)
	.put(controller.update)
	.delete(controller.delete);	

router.route('/:playerUniqueIdentifier/:teamName')
	.all(function(req, res, next){
		next();
	})
	.put(controller.updatePlayersTeam);

module.exports = router;<commit_msg>Getting rid of bad endpoint (no longer mixing player and team params in the players endpoints)<commit_after>'use strict';

var express = require('express');
var controller = require('./players.controller');
var middleware = require('../middleware');
var players = require('../../components/players');
var router = express.Router();

router.route('/')
	.all(function(req, res, next) {
	  next();
	})
	.get(controller.index)
	.post(controller.create);

router.param('player_id', middleware.playerUniqueIdentifierInterceptor('player'));

router.route('/:player_id')
	.all(function(req, res, next) {
	  next();
	})
	.get(controller.read)
	.put(controller.update)
	.delete(controller.delete);	

module.exports = router;
{'fraction_non_alphanumeric': 0.18170731707317073, 'fraction_numerical': 0.0, 'mean_word_length': 5.753086419753086, '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': '3278231', 'n_tokens_mistral': 507, 'n_tokens_neox': 497, 'n_words': 97}