diff options
author | Phil Hughes <me@iamphill.com> | 2018-07-02 12:38:03 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-07-05 17:44:54 +0300 |
commit | 6021ab6f779c81fa84ef042a66573c232cd74def (patch) | |
tree | 271388ee0ee6e804d00cc97251ed9083efb7e61a /lib/api | |
parent | 3b9bb25dfe3b30d183f916672c228ac7574b3933 (diff) |
added html to response
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 6 |
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 |