Replace OEmbed and initial state Rabl templates with serializers (#4110)
* Replace OEmbed Rabl template with serializer * Replace initial state rabl with serializer
This commit is contained in:
parent
102466ac58
commit
864e3f8d9c
9 changed files with 121 additions and 94 deletions
|
@ -5,8 +5,7 @@ class Api::OEmbedController < Api::BaseController
|
|||
|
||||
def show
|
||||
@stream_entry = find_stream_entry.stream_entry
|
||||
@width = maxwidth_or_default
|
||||
@height = maxheight_or_default
|
||||
render json: @stream_entry, serializer: OEmbedSerializer, width: maxwidth_or_default, height: maxheight_or_default
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue