Created
September 21, 2010 05:09
-
-
Save arestov/589240 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mime :json, 'appliaction/json' | |
post '/update' do | |
inviters = { | |
:yodapunk => { | |
:count => 0, | |
:link => 'http://vk.com/reg198193', | |
:select => true | |
}, | |
:kossnocorp => { | |
:count => 0, | |
:link => 'http://vk.com/reg37829378', | |
:select => true | |
}, | |
:porqz => { | |
:count => 0, | |
:link => 'http://vk.com/reg668467', | |
:select => true | |
}, | |
:elv1s => { | |
:count => 0, | |
:link => 'http://vk.com/reg1114384', | |
:select => true | |
} | |
} | |
referer = :yodapunk | |
content_type :json | |
{ | |
:latest_version => { | |
:number => '1.9', | |
:link => 'http://widgets.opera.com/widget/15872/' | |
}, | |
:vk_referer => inviters[referer][:link], | |
:promo => { | |
:text => '', | |
:lang => '', | |
:number => 0, | |
:until => Time.now | |
} | |
}.to_json | |
end |
я не виноват, это коснокопр писал! ;))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1st line: 'application' instead of 'appliaction'