Sha256: 8a9752c86bfddfec08b14b3124561cd7589b32976a2e3998c4aaff0b96c57fbd
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
require 'sinatra' require 'json' require 'rack/cors' use Rack::Cors do allow do origins '*' resource '/*', :headers => :any, :methods => [:get, :post] end end get '/artifacts.json' do content_type 'application/json' { artifacts: %w( artifacts/reference_screenshots/one.png artifacts/reference_screenshots/two.png artifacts/reference_screenshots/three.png artifacts/reference_screenshots/four.png ) }.to_json end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compaa-0.1.1 | mock_app.rb |