Sha256: bc529e856401f042e7e1627c8452ec4b8808308b4b2c4c2da5ef877dc5abfb72

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

require 'rubygems'
require 'sinatra'

disable :logging
set :root, File.dirname(__FILE__)

options '/' do
  response.headers['Access-Control-Allow-Origin'] = '*'
  response.headers['Access-Control-Allow-Methods'] = 'POST'
end

get '/' do
  headers 'Biscuit' => 'Gravy'
  erb :index
end

get '/request-mapping' do
  haml :request_mapping
end

get '/poster' do
  haml :poster
end

post '/poster' do
  haml :posted
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jubilee-3.0.0.beta2-java spec/apps/sinatra/basic/basic.rb
jubilee-2.1.0.rc1-java spec/apps/sinatra/basic/basic.rb
jubilee-2.1.0.beta-java spec/apps/sinatra/basic/basic.rb
jubilee-2.1.0.Alpha1-java spec/apps/sinatra/basic/basic.rb
jubilee-2.0.0-java spec/apps/sinatra/basic/basic.rb
jubilee-2.0.0.beta-java spec/apps/sinatra/basic/basic.rb
jubilee-2.0.0.alpha1-java spec/apps/sinatra/basic/basic.rb
jubilee-1.1.3-java spec/apps/sinatra/basic/basic.rb