diff options
Diffstat (limited to 'lib/api/entities/public_group_details.rb')
-rw-r--r-- | lib/api/entities/public_group_details.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/entities/public_group_details.rb b/lib/api/entities/public_group_details.rb new file mode 100644 index 00000000000..0dfe28d251a --- /dev/null +++ b/lib/api/entities/public_group_details.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module API + module Entities + class PublicGroupDetails < BasicGroupDetails + expose :avatar_url do |group, options| + group.avatar_url(only_path: false) + end + expose :full_name, :full_path + end + end +end |