REPP domains: Nameserver actions

This commit is contained in:
Karl Erik Õunapuu 2021-01-18 13:24:16 +02:00
parent fcb97df45d
commit 2b3634b048
No known key found for this signature in database
GPG key ID: C9DD647298A34764
10 changed files with 140 additions and 6 deletions

View file

@ -60,6 +60,7 @@ Rails.application.routes.draw do
end
end
resources :domains, constraints: { id: /.*/ } do
resources :nameservers, only: %i[create destroy], constraints: { id: /.*/ }, controller: 'domains/nameservers'
collection do
get ':id/transfer_info', to: 'domains#transfer_info', constraints: { id: /.*/ }
post 'transfer', to: 'domains#transfer'