# frozen_string_literal: true require "rack/static" class Tynn module Static def self.setup(app, urls, opts = {}) options = opts.dup options[:urls] ||= urls options[:root] ||= File.expand_path("public", Dir.pwd) app.use(Rack::Static, options) end end end