Add /author API and refactor controllers and resources