Sha256: feeb7328a4bca41a3a8b8a12b6c3893fca39b85887e547445f0c23e55a550ad5
Contents?: true
Size: 1.05 KB
Versions: 13
Compression:
Stored size: 1.05 KB
Contents
Routes = Rack::Builder.new do use Pliny::Middleware::RequestStore::Clear, store: Pliny::RequestStore use Pliny::Middleware::CORS use Pliny::Middleware::RequestID use Pliny::Middleware::RequestStore::Seed, store: Pliny::RequestStore use Pliny::Middleware::Metrics use Pliny::Middleware::Instruments use Pliny::Middleware::CanonicalLogLine, emitter: -> (data) { Pliny.log_with_default_context({ canonical_log_line: true }.merge(data)) } use Pliny::Middleware::RescueErrors, raise: Config.raise_errors? if Config.timeout.positive? use Rack::Timeout, service_timeout: Config.timeout end if Config.versioning? use Pliny::Middleware::Versioning, default: Config.versioning_default, app_name: Config.versioning_app_name end use Rack::Deflater use Rack::MethodOverride use Rack::SSL if Config.force_ssl? use Pliny::Router do # mount all endpoints here mount Endpoints::Health mount Endpoints::Schema end # root app; but will also handle some defaults like 404 run Endpoints::Root end
Version data entries
13 entries across 13 versions & 1 rubygems