mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 05:56:20 +02:00
Remove registrar routes
This commit is contained in:
parent
70d8c5bad3
commit
56f41b00bf
2 changed files with 153 additions and 96 deletions
|
@ -186,97 +186,6 @@ Rails.application.routes.draw do
|
|||
as: 'cors_preflight_check'
|
||||
end
|
||||
|
||||
# REGISTRAR ROUTES
|
||||
namespace :registrar do
|
||||
root 'polls#show'
|
||||
|
||||
devise_for :users, path: '', class_name: 'ApiUser', skip: %i[sessions]
|
||||
|
||||
resources :invoices, except: %i[new create edit update destroy] do
|
||||
resource :delivery, controller: 'invoices/delivery', only: %i[new create]
|
||||
|
||||
member do
|
||||
get 'download'
|
||||
patch 'cancel'
|
||||
end
|
||||
end
|
||||
|
||||
resources :deposits
|
||||
resources :account_activities
|
||||
|
||||
put 'current_user/switch/:new_user_id', to: 'current_user#switch', as: :switch_current_user
|
||||
resource :account, controller: :account, only: %i[show edit update]
|
||||
|
||||
resources :domains do
|
||||
collection do
|
||||
post 'update', as: 'update'
|
||||
post 'destroy', as: 'destroy'
|
||||
get 'renew'
|
||||
get 'edit'
|
||||
get 'info'
|
||||
get 'check'
|
||||
get 'delete'
|
||||
get 'search_contacts'
|
||||
get 'remove_hold'
|
||||
end
|
||||
end
|
||||
resources :domain_transfers, only: %i[new create]
|
||||
resource :bulk_change, controller: :bulk_change, only: :new
|
||||
post '/bulk_renew/new', to: 'bulk_change#bulk_renew', as: :bulk_renew
|
||||
resource :tech_contacts, only: :update
|
||||
resource :admin_contacts, only: :update
|
||||
resource :nameservers, only: :update
|
||||
resources :contacts, constraints: {:id => /[^\/]+(?=#{ ActionController::Renderers::RENDERERS.map{|e| "\\.#{e}\\z"}.join("|") })|[^\/]+/} do
|
||||
member do
|
||||
get 'delete'
|
||||
end
|
||||
|
||||
collection do
|
||||
get 'check'
|
||||
end
|
||||
end
|
||||
|
||||
resource :poll, only: %i[show destroy] do
|
||||
collection do
|
||||
post 'confirm_transfer'
|
||||
end
|
||||
end
|
||||
|
||||
resource :xml_console do
|
||||
collection do
|
||||
get 'load_xml'
|
||||
end
|
||||
end
|
||||
|
||||
get 'pay/return/:payment_order' => 'payments#back', as: 'return_payment_with'
|
||||
post 'pay/return/:payment_order' => 'payments#back'
|
||||
put 'pay/return/:payment_order' => 'payments#back'
|
||||
post 'pay/callback/:payment_order' => 'payments#callback', as: 'response_payment_with'
|
||||
get 'pay/go/:bank' => 'payments#pay', as: 'payment_with'
|
||||
|
||||
namespace :settings do
|
||||
resource :balance_auto_reload, controller: :balance_auto_reload, only: %i[edit update destroy]
|
||||
end
|
||||
end
|
||||
|
||||
scope :registrar do
|
||||
devise_scope :registrar_user do
|
||||
get 'sign_in', to: 'registrar/sessions#new', as: :new_registrar_user_session
|
||||
|
||||
# /registrar/sessions path is hardcoded in Apache config for certificate-based authentication
|
||||
# See https://github.com/internetee/registry/blob/master/README.md#installation
|
||||
# Client certificate is asked only on login form submission, therefore the path must be
|
||||
# different from the one in `new_registrar_user_session` route
|
||||
post 'sessions', to: 'registrar/sessions#create', as: :registrar_user_session
|
||||
|
||||
delete 'sign_out', to: 'registrar/sessions#destroy', as: :destroy_registrar_user_session
|
||||
|
||||
# TARA
|
||||
match '/open_id/callback', via: %i[get post], to: 'sso/tara#registrar_callback'
|
||||
match '/open_id/cancel', via: %i[get post delete], to: 'sso/tara#cancel'
|
||||
end
|
||||
end
|
||||
|
||||
namespace :registrant do
|
||||
devise_for :users, path: '', class_name: 'RegistrantUser'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue