Sha256: 1133ec41d87e442da1a113aa44cc5eba2e7269433c4ba7da1878ca522dfa35e7

Contents?: true

Size: 353 Bytes

Versions: 6

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

require_relative "../snowpack"
require_relative "web/application"

module Snowpack
  module Web
    def self.routes(&block)
      if block
        @routes = block
      else
        @routes
      end
    end

    def self.application
      @application ||= Application.new(Snowpack.application, &routes)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/web.rb
snowpack-1.0.0.alpha6 lib/snowpack/web.rb
snowpack-1.0.0.alpha5 lib/snowpack/web.rb
snowpack-1.0.0.alpha4 lib/snowpack/web.rb
snowpack-1.0.0.alpha3 lib/snowpack/web.rb
snowpack-1.0.0.alpha2 lib/snowpack/web.rb