Sha256: a6155ac251ff9952b5d6f7f1e886196a5e5af2b95f3c14455d3a9b44f5354997
Contents?: true
Size: 332 Bytes
Versions: 4
Compression:
Stored size: 332 Bytes
Contents
# frozen_string_literal: true require "bundler/setup" require "shatter" require "rack/cors" require_relative "./config/environment" use Rack::CommonLogger use Rack::Cors do allow do origins "*" resource "*", headers: :any, methods: %i[get post patch put], expose: %w[delay location] end end run Shatter::Web::Server
Version data entries
4 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shatter-rb-0.1.1 | example_app/config.ru |
shatter-rb-0.1.1 | templates/config.ru |
shatter-rb-0.1.0 | example_app/config.ru |
shatter-rb-0.1.0 | templates/config.ru |