Goal:
-
/api/posts - GET - fetches 40 most recent posts from the database and returns them as an array of objects
-
/api/posts - POST - creates a new object and returns it with an assigned I.D.
-
/api/posts/:id - GET - fetch one blog post.
-
api/posts/:id - DELETE - delete and return a post.