Sha256: 377a625d09fa29e89eae276dbfe45aefd231e1f8781a9b3ccb3bda59c552eebf

Contents?: true

Size: 519 Bytes

Versions: 8

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true
require 'roda/endpoints/version'
require 'dry/core/constants'
require 'dry/container'

class Roda
  # Endpoints abstractions
  module Endpoints
    include Dry::Core::Constants

    autoload :Endpoint, 'roda/endpoints/endpoint'

    VERBS = %i(get post delete patch put head).freeze

    # @return [Dry::Container]
    def self.container
      @container ||= Dry::Container.new
    end

    class << self
      attr_accessor :roda_class
    end
  end
end

require 'roda/plugins/endpoints'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roda-endpoints-0.3.6 lib/roda/endpoints.rb
roda-endpoints-0.3.5 lib/roda/endpoints.rb
roda-endpoints-0.3.4 lib/roda/endpoints.rb
roda-endpoints-0.3.3 lib/roda/endpoints.rb
roda-endpoints-0.3.2 lib/roda/endpoints.rb
roda-endpoints-0.3.1 lib/roda/endpoints.rb
roda-endpoints-0.3.0 lib/roda/endpoints.rb
roda-endpoints-0.2.0 lib/roda/endpoints.rb