I would probably move this to the puppet modules controller and combine it with the index action there. Maybe throw an error if both repository_id and content_view_id are used.