Sha256: 0f1dda7a629b378e8a9094fba95decbf5d60bb3cffc9efccdd639e45bff5d32a

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

require "dry/web/roda/application"
require_relative "container"

module <%= config[:camel_cased_app_name] %>
  class Web < Dry::Web::Roda::Application
    configure do |config|
      config.container = Container
    end

    plugin :error_handler

    route do |r|
      r.run <%= config[:camel_cased_app_name] %>::Main::Web.freeze.app
    end

    error do |e|
      self.class[:rack_monitor].instrument(:error, exception: e)
      raise e
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dry-web-roda-0.14.0 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.13.1 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.13.0 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.12.0 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.11.0 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.10.0 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.9.1 lib/dry/web/roda/templates/umbrella_project/web.rb.tt
dry-web-roda-0.9.0 lib/dry/web/roda/templates/umbrella_project/web.rb.tt