Sha256: fe32b1bca2b2e8cdd64ceb3d1a7c839952c31e3f666bcfef83de7845e25e8d04
Contents?: true
Size: 769 Bytes
Versions: 7
Compression:
Stored size: 769 Bytes
Contents
require "dry/web/roda/application" require_relative "container" module <%= config[:camel_cased_app_name] %> class Application < Dry::Web::Roda::Application configure do |config| config.container = Container config.routes = "web/routes".freeze end opts[:root] = Pathname(__FILE__).join("../..").realpath.dirname use Rack::Session::Cookie, key: "<%= config[:underscored_project_name] %>.session", secret: self["settings"].session_secret plugin :csrf, raise: true plugin :flash plugin :dry_view route do |r| r.multi_route r.root do r.view "welcome" end end error do |e| self.class[:rack_monitor].instrument(:error, exception: e) raise e end load_routes! end end
Version data entries
7 entries across 7 versions & 1 rubygems