{"size": 382, "ext": "js", "max_stars_repo_path": "services/todoServices.js", "max_stars_repo_name": "shreyaorg/contactsServer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "services/todoServices.js", "max_issues_repo_name": "shreyaorg/contactsServer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "services/todoServices.js", "max_forks_repo_name": "shreyaorg/contactsServer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.4666666667, "max_line_length": 50, "alphanum_fraction": 0.6858638743}
var exports = module.exports = {};
var _ = require('underscore');
var mongoServices = require('./mongoServices.js');

exports.getList = function(req, res) {	
	mongoServices.read(req, res, 'todos');
};

exports.saveTodo = function(req, res) {	
	mongoServices.createOrUpdate(req, res, 'todos');
};

exports.delete = function(req, res) {	
  mongoServices.delete(req, res, 'todos');	
};