add jshint code complexity settings
export schema endpoint function