{"size": 1187, "ext": "js", "max_stars_repo_path": "src/ui/app/routes/server/concepts/responses/concepts-responses.page.js", "max_stars_repo_name": "ThirdCorner/scaffi-docs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/ui/app/routes/server/concepts/responses/concepts-responses.page.js", "max_issues_repo_name": "ThirdCorner/scaffi-docs", "max_issues_repo_issues_event_min_datetime": "2016-09-12T20:20:11.000Z", "max_issues_repo_issues_event_max_datetime": "2016-11-04T14:11:01.000Z", "max_forks_repo_path": "src/ui/app/routes/server/concepts/responses/concepts-responses.page.js", "max_forks_repo_name": "ThirdCorner/scaffi-docs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 16.7183098592, "max_line_length": 81, "alphanum_fraction": 0.6267902275}
'use strict';

import {RouteConfig, AbstractPage} from 'scaffi-ui-core'; // jshint unused: false
import template from './concepts-responses.html';

// export-params-start
const ROUTE = 'app.server.concepts.responses';
const PARAMS = {
	url: '/responses',
	template: template,
	resolve: {

	},
	ncyBreadcrumb: {
		 label: 'Responses' 
	}
};
// export-params-end

//start-non-standard
@RouteConfig(ROUTE, PARAMS)
//end-non-standard

class ConceptsResponses extends AbstractPage {
	constructor($state, $scope){
		super($scope);
		
		this.$state = $state;
		this.$scope = $scope;
	}
	getCode1(){
		return `
	res.send(“Good”);
		`
	}
	getCode2(){
		return `
	res.status(500).send(“Bad”);
		`
	}
	getCode3(){
		return `
	router.list("/api/getData", (req, res, next)=>{
		
		// Do logic		
		res.send(“success”);
	});
		`;
	}
	getCode4(){
		return `
	router.list("/api/getData", (req, res, next)=>{	
		// Do logic		
		res.sendSuccess(“success”);
	});
		`;
	}
	getCode5(){
		return `
	router.list("/api/getData", (req, res, next)=>{
		
		// Do logic		
		res.sendError(“An error occurred”, {stack: “I didn’t go anywhere”});
	});
		`
	}

}

export default ConceptsResponses;
export {ROUTE, PARAMS};