moved generic functions out of app.get call so they can be used by multiple endpoints
removed transform type from findContent
moved shared functions to a class and added list endpoint for a content type