Sha256: 19359d976c45af0c322fbda2b5f764dea1314be975fbd201288e0e4508f11cc1

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

require 'sinatra/base'

class FlickrFakr < Sinatra::Base
  set :views, File.dirname(__FILE__)+'/views'

  get '/' do
    'Welcome to Flickr Fakr!'
  end

  get '/services/auth/' do
    redirect 'http://localhost:9292/flickr/callback?frob=123'
  end

  post '/services/rest/' do
    view = params[:method]+'.'+params[:format]
    erb view.to_sym
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flickr_fakr-0.1.3 lib/flickr_fakr/flickr_fakr.rb