Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created July 20, 2013 15:15
Show Gist options
  • Save chintanparikh/6045415 to your computer and use it in GitHub Desktop.
Save chintanparikh/6045415 to your computer and use it in GitHub Desktop.
tinder.rb
require 'sinatra'
require 'json'
require 'sinatra/cross_origin'
require 'rest-client'
require './sinatra/tinder_helpers'
class Tinder < Sinatra::Base
helpers Sinatra::TinderHelpers
before do
response['Access-Control-Allow-Origin'] = '*'
end
get '/' do
"Hello, world"
end
post '/auth' do
auth(params[:token])
end
post '/user/recs' do
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment