{"size": 268, "ext": "js", "max_stars_repo_path": "examples/endpoint-testing/app.js", "max_stars_repo_name": "Sarveshk76/ava", "max_stars_repo_stars_event_min_datetime": "2016-05-17T13:51:28.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T17:47:22.000Z", "max_issues_repo_path": "examples/endpoint-testing/app.js", "max_issues_repo_name": "Sarveshk76/ava", "max_issues_repo_issues_event_min_datetime": "2016-05-17T15:09:20.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T19:13:23.000Z", "max_forks_repo_path": "examples/endpoint-testing/app.js", "max_forks_repo_name": "Sarveshk76/ava", "max_forks_repo_forks_event_min_datetime": "2016-05-17T15:23:23.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-27T04:20:59.000Z"}
{"max_stars_count": 16880, "max_issues_count": 1872, "max_forks_count": 1955, "avg_line_length": 22.3333333333, "max_line_length": 57, "alphanum_fraction": 0.6380597015}
'use strict';

module.exports = (request, response) => {
	if (request.url === '/user') {
		response.setHeader('Content-Type', 'application/json');
		response.end(JSON.stringify({email: 'ava@rocks.com'}));
	} else {
		response.writeHead('404');
		response.end();
	}
};
