mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 06:53:44 +08:00
11 lines
261 B
Ruby
11 lines
261 B
Ruby
require_dependency 'inline_oneboxer'
|
|
|
|
class InlineOneboxController < ApplicationController
|
|
before_action :ensure_logged_in
|
|
|
|
def show
|
|
oneboxes = InlineOneboxer.new(params[:urls] || []).process
|
|
render json: { "inline-oneboxes" => oneboxes }
|
|
end
|
|
end
|