Sha256: 773386866cf50358df2cade34cb9a9ff57eda524bd26ab3da1fa83f6e782aca3
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 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_app_name] %>.session", secret: <%= config[:camel_cased_umbrella_name] %>::Container.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