Sha256: 6cfcfc49cf95f42836f63f730870ecb9d2d3aea40bb0a6034aad1dd318900d20

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

require 'rubygems'
require 'sinatra'

disable :logging

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

5 entries across 5 versions & 1 rubygems

Version Path
jubilee-1.1.2-java spec/apps/sinatra/basic/basic.rb
jubilee-1.1.0-java spec/apps/sinatra/basic/basic.rb
jubilee-1.1.0.rc3 spec/apps/sinatra/basic/basic.rb
jubilee-1.1.0.rc2 spec/apps/sinatra/basic/basic.rb
jubilee-1.1.0.rc1 spec/apps/sinatra/basic/basic.rb