Sha256: 3afe75e2213876db2bb6c693eb9901e913f510dbfb1164a73618cd6c1765e8d1
Contents?: true
Size: 407 Bytes
Versions: 23
Compression:
Stored size: 407 Bytes
Contents
# FIXME: This is a temporary server to handle rps token registration class MyServer < Rhoconnect::Server post '/rps/token' do user = "tuser" User.create(:login => user) current_app.users << user fields = {:user_id => user} fields[:app_id] = 'application' fields[:device_type] = 'rhoconnect_push' fields[:device_pin] = params['token'] Client.create(fields) status 200 end end
Version data entries
23 entries across 23 versions & 1 rubygems