summaryrefslogtreecommitdiff
path: root/lib/api/entities/compare.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities/compare.rb')
-rw-r--r--lib/api/entities/compare.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities/compare.rb b/lib/api/entities/compare.rb
index fe2f03db2af..75a36d9bb01 100644
--- a/lib/api/entities/compare.rb
+++ b/lib/api/entities/compare.rb
@@ -20,6 +20,10 @@ module API
end
expose :same, as: :compare_same_ref
+
+ expose :web_url do |compare, _|
+ Gitlab::UrlBuilder.build(compare)
+ end
end
end
end