Skip to content

Instantly share code, notes, and snippets.

@arestov
Created September 21, 2010 05:09
Show Gist options
  • Save arestov/589240 to your computer and use it in GitHub Desktop.
Save arestov/589240 to your computer and use it in GitHub Desktop.
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
@edtsech
Copy link

edtsech commented Sep 21, 2010

1st line: 'application' instead of 'appliaction'

@arestov
Copy link
Author

arestov commented Sep 21, 2010

я не виноват, это коснокопр писал! ;))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment