Sha256: 52b62f1957e8b3cfd8f676f390ed002b5fd6debb0787d68b49c0cd943110cea6

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

# require 'action_dispatch/routing/mapper'

module Oauth2
  module Auth
    module Server
      module ActionDispatch::Routing
        class Mapper
          def oauth2_token_endpoint(path = 'oauth2/token')
            post path, :to => proc { |env| Endpoints::Token.new.call(env) }
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oauth2-auth-server-0.0.1 lib/oauth2-auth-server/routes.rb