<commit_before>
var db = require('../db');



module.exports = {
	dashboard: {
		get: function(req,res){
			var userid = req.params.user_id
			db.getAllClients(userid, function(result){
				res.JSON(result);	
			});
			// This is where we call the DB function for getting dashboard

		}
	},
	user: {
		post: function(req,res){
			// This is where we call the DB function for creating new user
			// TO DO: Make sure you send a response
		}	
	},
	client: {
		get: function(req,res){
			var userid = req.params.user_id;
			var clientid = req.params.client_id;
			// This is where we call the DB function for getting particualr client
		},
		post: function(req,res){
			var userid = req.params.user_id;
			// This is where we call the DB function for creating a new client
		},
		put: function(req,res){
			var user_id = req.params.user_id;
			// This is where we call the DB function for updating a client
		}
	}

}




<commit_msg>Fixes bug that resulted in response not sending<commit_after>
var db = require('../../db');




module.exports = {
	dashboard: {
		get: function(req,res){
			var userid = req.params.user_id
			db.getAllClients(userid, function(result){
				res.json(result);

			});
			// This is where we call the DB function for getting dashboard

		}
	},
	user: {
		post: function(req,res){
			// This is where we call the DB function for creating new user
			// TO DO: Make sure you send a response
		}	
	},
	client: {
		get: function(req,res){
			var userid = req.params.user_id;
			var clientid = req.params.client_id;
			// This is where we call the DB function for getting particualr client
		},
		post: function(req,res){
			var userid = req.params.user_id;
			// This is where we call the DB function for creating a new client
		},
		put: function(req,res){
			var user_id = req.params.user_id;
			// This is where we call the DB function for updating a client
		}
	}

}





{'fraction_non_alphanumeric': 0.11116965226554268, 'fraction_numerical': 0.0, 'mean_word_length': 2.8755102040816327, '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': '3367520', 'n_tokens_mistral': 714, 'n_tokens_neox': 620, 'n_words': 215}