diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-22 10:53:37 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-22 10:53:37 +0000 |
commit | 360ec74caaa11053babaf4a205328c21dc3290a5 (patch) | |
tree | 78b3c883dd5c16c53f668c73c7730bde083544c7 /lib/api | |
parent | 4d674bd38c8a3568f6e1295c25c902ef10151aef (diff) | |
parent | 10237d458d0266787aa15852b525469d0dcb5362 (diff) | |
download | gitlab-ce-360ec74caaa11053babaf4a205328c21dc3290a5.tar.gz |
Merge branch '45827-expose_readme_url_in_project_api' into 'master'
Expose readme url in Project API
Closes #45827
See merge request gitlab-org/gitlab-ce!18960
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 25d78fc761d..174c5af91d5 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -125,7 +125,7 @@ module API # (fixed in https://github.com/rails/rails/pull/25976). project.tags.map(&:name).sort end - expose :ssh_url_to_repo, :http_url_to_repo, :web_url + expose :ssh_url_to_repo, :http_url_to_repo, :web_url, :readme_url expose :avatar_url do |project, options| project.avatar_url(only_path: false) end |