Sha256: 024379e82633ec2137213b0f1219f003c3c55ad2d37ab5773b3dd7b05200a0bc

Contents?: true

Size: 869 Bytes

Versions: 11

Compression:

Stored size: 869 Bytes

Contents

EgovUtils::Engine.routes.draw do

  get '/login', to: 'sessions#new', as: 'signin'
  post '/login', to: 'sessions#create'
  delete '/logout', to: 'sessions#destroy', as: 'signout'
  get '/signup', to: 'users#new', as: 'signup'

  resources :sessions
  resources :users do
    get :search, on: :collection
    post :approve, on: :member
    get :confirm, on: :member
  end

  resources :people

  resources :groups do
    member do
      get '/users/new', to: 'groups#new_users', as: 'new_users'
      post '/users', to: 'groups#add_users', as: 'users'
    end
  end
  resources :roles

  resources :passwords

  # post '/auth/:provider/callback', to: 'sessions#create'

  get '/address/validate_ruian' => 'addresses#validate_ruian', as: :validate_ruian
  get '/organizations/district_courts' => 'organizations#district_courts', as: :district_courts_organizations


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
egov_utils-0.2.10 config/routes.rb
egov_utils-0.2.9 config/routes.rb
egov_utils-0.2.8 config/routes.rb
egov_utils-0.2.7 config/routes.rb
egov_utils-0.2.6 config/routes.rb
egov_utils-0.2.5 config/routes.rb
egov_utils-0.2.4 config/routes.rb
egov_utils-0.2.3 config/routes.rb
egov_utils-0.2.2 config/routes.rb
egov_utils-0.2.1 config/routes.rb
egov_utils-0.2.0 config/routes.rb