Sha256: 9e4b7c23c2bc838a8a6a5845af7c332a9547bdadbb969641ce555054af8ff1a1

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

#!/usr/bin/env ruby

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

post '/api/reports' 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

1 entries across 1 versions & 1 rubygems

Version Path
procon_bypass_man-0.1.11 bin/dev_api_server.rb