Sha256: 7daf2b3c93c8c0405dfcdfa417a74407f0bf12a774bdb161b7e77cce14518a3d

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

require "snowpack/web"
require "rack"

Snowpack::Web.routes do |application|
  use Rack::Lint

  use Rack::Static,
    urls: ["/assets"],
    root: "public"

  use Rack::Session::Cookie,
    key: "<%= application_path %>.session",
    secret: application[:settings].session_secret,
    expire_after: 10 * 365 * 24 * 60 * 60 # 10 years
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/generators/application/templates/config/routes.rb.tt
snowpack-1.0.0.alpha6 lib/snowpack/generators/application/templates/config/routes.rb.tt
snowpack-1.0.0.alpha5 lib/snowpack/generators/application/templates/config/routes.rb.tt
snowpack-1.0.0.alpha4 lib/snowpack/generators/application/templates/config/routes.rb.tt
snowpack-1.0.0.alpha3 lib/snowpack/generators/application/templates/config/routes.rb.tt
snowpack-1.0.0.alpha2 lib/snowpack/generators/application/templates/config/routes.rb.tt