Sha256: def18add5bf8246fc0c43c59430f1db46f9e15d3a9da346127292642b26d634c
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 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["core.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 load_routes! end end
Version data entries
3 entries across 3 versions & 1 rubygems