Sha256: 29362e9d3fa771b8d56371dec3159792d26368dfd748d4d6d65413465a2d01f2
Contents?: true
Size: 331 Bytes
Versions: 19
Compression:
Stored size: 331 Bytes
Contents
#!/usr/bin/env ruby require 'sinatra/base' class Webserver < Sinatra::Base set :logging, :true post '/rspec/:test' do case params[:test] when 'send' return params[:data] else not_found end end get '/rspec/:test' do params[:test] end end Webserver.set :bind,'127.0.0.1' Webserver.run!
Version data entries
19 entries across 19 versions & 1 rubygems