created the contentController for serving RESTful data.