{"size": 508, "ext": "js", "max_stars_repo_path": "app/routes/rsvps.server.routes.js", "max_stars_repo_name": "lenonrf/iofferta", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/routes/rsvps.server.routes.js", "max_issues_repo_name": "lenonrf/iofferta", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/routes/rsvps.server.routes.js", "max_forks_repo_name": "lenonrf/iofferta", "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": 24.1904761905, "max_line_length": 69, "alphanum_fraction": 0.6968503937}
'use strict';

module.exports = function(app) {
	var users = require('../../app/controllers/users');
	var rsvps = require('../../app/controllers/rsvps');

	// Emails Routes
	app.route('/rsvps')
		.get(rsvps.list)
		.post(rsvps.create);


	app.route('/rsvps/:rsvpId')
		.get(rsvps.read)
		.put(users.requiresLogin, rsvps.hasAuthorization, rsvps.update)
		.delete(users.requiresLogin, rsvps.hasAuthorization, rsvps.delete);

	// Finish by binding the Email middleware
	app.param('rsvpId', rsvps.emailByID);
};
