Files
danbooru/app/controllers/sources_controller.rb

16 lines
306 B
Ruby

class SourcesController < ApplicationController
# before_filter :member_only
respond_to :json
def show
@source = Sources::Site.new(params[:url])
@source.get
respond_with(@source) do |format|
format.json do
render :json => @source.to_json
end
end
end
end