Sha256: 87e406a3c4746ba0c786e5d299ab4df8ce9fadb846badca229b8f4ccc32185fe

Contents?: true

Size: 185 Bytes

Versions: 3

Compression:

Stored size: 185 Bytes

Contents

require 'rack/cors'
use Rack::Cors do
  allow do
    origins '*'
    resource '*', headers: :any, methods: [:get, :post, :put, :delete, :options]
  end
end

require './api'
run Api.new

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-swagger-0.11.0 example/config.ru
grape-swagger-0.10.5 example/config.ru
grape-swagger-0.10.4 example/config.ru