Sha256: 369aa2d2a6d5cc052606226326c80493370e4f11597ffcac9ec6c3289de30c77

Contents?: true

Size: 673 Bytes

Versions: 17

Compression:

Stored size: 673 Bytes

Contents

class Rack::App::Router::Base

  def endpoints
    @endpoints ||= []
  end

  def register_endpoint!(request_method, request_path, description, endpoint)
    endpoints.push(
        {
            :request_method => request_method.to_s.upcase,
            :request_path => Rack::App::Utils.normalize_path(request_path),
            :description => description,
            :endpoint => endpoint
        }
    )

    compile_registered_endpoints!
    return endpoint
  end

  def fetch_endpoint(request_method, request_path)
    raise('IMPLEMENTATION MISSING ERROR')
  end

  protected

  def compile_registered_endpoints!
    raise('IMPLEMENTATION MISSING ERROR')
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rack-app-3.0.0.alpha lib/rack/app/router/base.rb
rack-app-2.3.1 lib/rack/app/router/base.rb
rack-app-2.3.0 lib/rack/app/router/base.rb
rack-app-2.2.0 lib/rack/app/router/base.rb
rack-app-2.1.0 lib/rack/app/router/base.rb
rack-app-2.0.0 lib/rack/app/router/base.rb
rack-app-1.4.0 lib/rack/app/router/base.rb
rack-app-1.3.0 lib/rack/app/router/base.rb
rack-app-1.2.2 lib/rack/app/router/base.rb
rack-app-1.2.1 lib/rack/app/router/base.rb
rack-app-1.1.0 lib/rack/app/router/base.rb
rack-app-1.0.0 lib/rack/app/router/base.rb
rack-app-0.24.0 lib/rack/app/router/base.rb
rack-app-0.23.0 lib/rack/app/router/base.rb
rack-app-0.22.0 lib/rack/app/router/base.rb
rack-app-0.21.0 lib/rack/app/router/base.rb
rack-app-0.20.0 lib/rack/app/router/base.rb