<commit_before>'use strict';
var users = require('../../app/controllers/users');
 var fellows = require('../../app/controllers/fellows');


module.exports = function(app) {
	// Setting up the bootcamp api
	app.route('/camps')
<<<<<<< HEAD
		.get(fellows.list_camp) // login and authorization required
=======
		.get(fellows.list_camp); // login and authorization required
>>>>>>> d27202af5ed201b57b4a5a78a95f3bdc88556d1a
		// .post(fellows.create_camp); //by admin
		
	app.route('/camps/:campId')
		.get(fellows.read_camp) // login and authorization required
		.put(fellows.update_camp) // login and authorization required
		.delete(fellows.delete_camp); // login and authorization required

	app.route('/camps/:campId/fellows');
		//.get(fellows.list_applicant) // login and authorization required
		// .post(fellows.create_applicant); //by admin
		
	app.route('/camps/:campId/fellows/:fellowId')
		.get(fellows.read_applicant) // login and authorization required
		.delete(fellows.delete_applicant); // login and authorization required by admin

	// Finish by binding the fellow middleware<commit_msg>Reset fellow server js file<commit_after>'use strict';
var users = require('../../app/controllers/users');
 var fellows = require('../../app/controllers/fellows');


module.exports = function(app) {
	// Setting up the bootcamp api
	app.route('/camps')
		.get(fellows.list_camp); // login and authorization required
		// .post(fellows.create_camp); //by admin
		
	app.route('/camps/:campId')
		.get(fellows.read_camp) // login and authorization required
		.put(fellows.update_camp) // login and authorization required
		.delete(fellows.delete_camp); // login and authorization required

	app.route('/camps/:campId/fellows');
		//.get(fellows.list_applicant) // login and authorization required
		// .post(fellows.create_applicant); //by admin
		
	app.route('/camps/:campId/fellows/:fellowId')
		.get(fellows.read_applicant) // login and authorization required
		.delete(fellows.delete_applicant); // login and authorization required by admin

	// Finish by binding the fellow middleware
{'fraction_non_alphanumeric': 0.14990421455938696, 'fraction_numerical': 0.011494252873563218, 'mean_word_length': 4.095121951219512, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '4607376', 'n_tokens_mistral': 727, 'n_tokens_neox': 636, 'n_words': 146}