mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Merge remote-tracking branch 'origin/master' into repp-domains
This commit is contained in:
commit
e2f377f1c2
187 changed files with 1934 additions and 2552 deletions
|
@ -200,35 +200,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
|
||||
|
@ -283,12 +256,24 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :version_domain_versions, path: '/domain_versions' do
|
||||
collection do
|
||||
get 'search' => 'domain_versions#search', via: [:get, :post], as: :search
|
||||
end
|
||||
end
|
||||
|
||||
resources :contact_versions do
|
||||
collection do
|
||||
get 'search'
|
||||
end
|
||||
end
|
||||
|
||||
resources :version_contact_versions, path: '/contact_versions' do
|
||||
collection do
|
||||
get 'search' => 'contact_versions#search', via: [:get, :post], as: :search
|
||||
end
|
||||
end
|
||||
|
||||
resources :settings, only: %i[index create]
|
||||
|
||||
resources :blocked_domains do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue