Merge pull request #1859 from internetee/1826-remove-code-for-old-registrant-portal

Drop legacy registrant portal
This commit is contained in:
Timo Võhmar 2021-03-04 13:11:15 +02:00 committed by GitHub
commit efdecb6d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 2 additions and 1777 deletions

View file

@ -191,35 +191,8 @@ Rails.application.routes.draw do
end
end
scope :registrant do
devise_scope :registrant_user do
get 'sign_in', to: 'registrant/sessions#new', as: :new_registrant_user_session
post 'sessions', to: 'registrant/sessions#create', as: :registrant_user_session
delete 'sign_out', to: 'registrant/sessions#destroy', as: :destroy_registrant_user_session
# TARA
match '/open_id/callback', via: %i[get post], to: 'sso/tara#registrant_callback'
match '/open_id/cancel', via: %i[get post delete], to: 'sso/tara#cancel'
end
end
namespace :registrant do
root 'domains#index'
# POST /registrant/sign_in is not used
devise_for :users, path: '', class_name: 'RegistrantUser'
resources :registrars, only: :show
# resources :companies, only: :index
resources :domains, only: %i[index show] do
resources :contacts, only: %i[show edit update]
member do
get 'confirmation'
end
end
resources :domain_update_confirms, only: %i[show update]
resources :domain_delete_confirms, only: %i[show update]
end
# ADMIN ROUTES