{"size": 579, "ext": "js", "max_stars_repo_path": "server/controller/user/get_user.js", "max_stars_repo_name": "ninemic/node-react", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/controller/user/get_user.js", "max_issues_repo_name": "ninemic/node-react", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/controller/user/get_user.js", "max_forks_repo_name": "ninemic/node-react", "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": 22.2692307692, "max_line_length": 73, "alphanum_fraction": 0.6873920553}
/**
*	app.get /User
*/
export default (req,res,next) => {
	//console.log(` userProfiles `)

  //let userProfiles = req.session.userProfiles
	// easy way to copy object
  let userProfiles = JSON.parse(JSON.stringify(req.session.userProfiles))
  delete userProfiles['token']
  //console.log(userProfiles)
	//console.log(req.sessionID)
  if (!userProfiles || userProfiles == '') {
	//console.log('no username')
    res.status(404)
  }
	//console.log(req.session)
  res.setHeader('Cache-Control', 'no-cache')
  res.status(200)
  res.json(userProfiles)

}


//export default getLogin
