Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
getfitter-core / config / routes.rb
Size: Mime:
Core::Engine.routes.draw do
  devise_for :users, class_name: 'Core::User', module: :devise, controllers: {
    confirmations: 'users/confirmations',
    omniauth_callbacks: 'users/omniauth_callbacks',
    passwords: 'users/passwords',
    registrations: 'users/registrations',
    sessions: 'users/sessions',
    unlocks: 'users/unlocks'
  }

  # HACK: To enable Doorkeeper to work inside an Engine
  old_scope = @scope[:module]
  @scope[:module] = nil

  use_doorkeeper do
    # skip the non-required routes
    skip_controllers :applications, :authorized_applications
  end

  # HACK: Restore it back
  @scope[:module] = old_scope

  post 'oauth/token/exchange', to: 'tokens#exchange'
end