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
|
2017-08-31 00:06:56 -04:00
|
|
|
oneboxes = InlineOneboxer.new(params[:urls] || []).process
|
2017-07-19 15:08:54 -04:00
|
|
|
render json: { "inline-oneboxes" => oneboxes }
|
|
|
|
end
|
|
|
|
end
|