Rubocop: Fixing the API controllers