Sha256: f52e799a25eda0cd8020044a8e4e1248011dd6d4990787ff4381e4e3bd5f9e69

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

require 'shutterbug'
require 'rack/cors'
use Rack::Cors do
  allow do
    origins '*'
    resource '/shutterbug/*', :headers => :any, :methods => :any
  end
end

use Shutterbug::Rackapp do |config|
  config.uri_prefix = "http://localhost:9292"
  config.path_prefix = "/shutterbug"
end

app = Rack::Directory.new "demo"

run app

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shutterbug-0.0.11 config.ru
shutterbug-0.0.10 config.ru
shutterbug-0.0.9 config.ru
shutterbug-0.0.8 config.ru