Sha256: f81386fe22ab27e9fd52ed06f3d389df87f9f9457a81e0d64254716e82494a23

Contents?: true

Size: 262 Bytes

Versions: 35

Compression:

Stored size: 262 Bytes

Contents

#!/usr/bin/env ruby

require "sinatra"
require "webrick"
require "pry"

post '/api/events' do
  puts JSON.parse(request.body.read)
  status 200
  body ''
end

post '/api/pressed_buttons' do
  r = JSON.parse(request.body.read)
  puts r
  status 200
  body ''
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 bin/dev_api_server.rb
procon_bypass_man-0.3.11 bin/dev_api_server.rb
procon_bypass_man-0.3.10 bin/dev_api_server.rb
procon_bypass_man-0.3.9 bin/dev_api_server.rb
procon_bypass_man-0.3.8.1 bin/dev_api_server.rb
procon_bypass_man-0.3.8 bin/dev_api_server.rb
procon_bypass_man-0.3.7 bin/dev_api_server.rb
procon_bypass_man-0.3.6 bin/dev_api_server.rb
procon_bypass_man-0.3.5 bin/dev_api_server.rb
procon_bypass_man-0.3.4 bin/dev_api_server.rb
procon_bypass_man-0.3.3.1 bin/dev_api_server.rb
procon_bypass_man-0.3.3 bin/dev_api_server.rb
procon_bypass_man-0.3.2 bin/dev_api_server.rb
procon_bypass_man-0.3.1 bin/dev_api_server.rb
procon_bypass_man-0.3.0 bin/dev_api_server.rb
procon_bypass_man-0.2.3 bin/dev_api_server.rb
procon_bypass_man-0.2.2 bin/dev_api_server.rb
procon_bypass_man-0.2.1 bin/dev_api_server.rb
procon_bypass_man-0.2.0 bin/dev_api_server.rb
procon_bypass_man-0.1.23 bin/dev_api_server.rb