refactor PostsController to utilize abstract APIController