diff options
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index cc29c7ef428..14370ac218d 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -88,7 +88,10 @@ module API class Group < Grape::Entity expose :id, :name, :path, :description, :visibility_level expose :avatar_url - expose :web_url + + expose :web_url do |group, options| + Gitlab::Routing.url_helpers.group_url(group) + end end class GroupDetail < Group |