Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 188 Bytes
require 'sinatra/base'
class App < Sinatra::Base
get '/' do
erb :index
end
put '/' do
puts "uploaded #{env['HTTP_X_FILENAME']} - #{request.body.read.size} bytes"
end
end