{"size": 792, "ext": "js", "max_stars_repo_path": "app/routes/fabric-stock-reports.server.routes.js", "max_stars_repo_name": "niranjan21/skt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/routes/fabric-stock-reports.server.routes.js", "max_issues_repo_name": "niranjan21/skt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/routes/fabric-stock-reports.server.routes.js", "max_forks_repo_name": "niranjan21/skt", "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": 39.6, "max_line_length": 98, "alphanum_fraction": 0.7853535354}
'use strict';

module.exports = function(app) {
	var users = require('../../app/controllers/users.server.controller');
	var fabricStockReports = require('../../app/controllers/fabric-stock-reports.server.controller');

	// Fabric stock reports Routes
	app.route('/fabric-stock-reports')
		.get(fabricStockReports.list)
		.post(users.requiresLogin, fabricStockReports.create);

	app.route('/fabric-stock-reports/:fabricStockReportId')
		.get(fabricStockReports.read)
		.put(users.requiresLogin, fabricStockReports.hasAuthorization, fabricStockReports.update)
		.delete(users.requiresLogin, fabricStockReports.hasAuthorization, fabricStockReports.delete);

	// Finish by binding the Fabric stock report middleware
	app.param('fabricStockReportId', fabricStockReports.fabricStockReportByID);
};
