Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-07-02 12:38:03 +0300
committerPhil Hughes <me@iamphill.com>2018-07-05 17:44:54 +0300
commit6021ab6f779c81fa84ef042a66573c232cd74def (patch)
tree271388ee0ee6e804d00cc97251ed9083efb7e61a /lib/api
parent3b9bb25dfe3b30d183f916672c228ac7574b3933 (diff)
added html to response
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 3a6e707fd5b..cabbb5c746f 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -388,6 +388,12 @@ module API
expose :id, :iid
expose(:project_id) { |entity| entity&.project.try(:id) }
expose :title, :description
+ expose :title_html do |entity|
+ MarkupHelper::markdown_field(entity, :title)
+ end
+ expose :description_html do |entity|
+ MarkupHelper::markdown_field(entity, :description)
+ end
expose :state, :created_at, :updated_at
end