2017-07-19 15:08:54 -04:00
|
|
|
require_dependency 'inline_oneboxer'
|
|
|
|
|
|
|
|
class InlineOneboxController < ApplicationController
|
2018-01-31 23:17:59 -05:00
|
|
|
requires_login
|
2017-07-19 15:08:54 -04:00
|
|
|
|
|
|
|
def show
|
2018-11-12 16:09:20 -05:00
|
|
|
hijack do
|
|
|
|
oneboxes = InlineOneboxer.new(params[:urls] || []).process
|
|
|
|
render json: { "inline-oneboxes" => oneboxes }
|
|
|
|
end
|
2017-07-19 15:08:54 -04:00
|
|
|
end
|
|
|
|
end
|