mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
15 lines
202 B
Ruby
15 lines
202 B
Ruby
require 'bundler'
|
|
require 'rack/cors'
|
|
|
|
use Rack::Cors do
|
|
allow do
|
|
origins ENV['CORS_ALLOW_ORIGINS']
|
|
resource '*', headers: :any
|
|
end
|
|
end
|
|
|
|
Bundler.setup
|
|
require './tubestatus'
|
|
|
|
run Tubestatus
|