Sha256: 9202a9a1ea47798d7bcd1be3ebd7f4cb0c30f032ca052f15cd73092c56187754

Contents?: true

Size: 222 Bytes

Versions: 7

Compression:

Stored size: 222 Bytes

Contents

module LinkThumbnailer
  class PreviewsController < ApplicationController

    respond_to :json

    def create
      @preview = LinkThumbnailer.generate(params[:url])
      render json: @preview.to_json
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
link_thumbnailer-1.1.2 app/controllers/link_thumbnailer/previews_controller.rb
link_thumbnailer-1.1.1 app/controllers/link_thumbnailer/previews_controller.rb
link_thumbnailer-1.1.0 app/controllers/link_thumbnailer/previews_controller.rb
rcarvalho-link_thumbnailer-1.0.9.1 app/controllers/link_thumbnailer/previews_controller.rb
link_thumbnailer-1.0.9 app/controllers/link_thumbnailer/previews_controller.rb
link_thumbnailer-1.0.8 app/controllers/link_thumbnailer/previews_controller.rb
link_thumbnailer-1.0.7 app/controllers/link_thumbnailer/previews_controller.rb