mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Add basic domain creating via EPP
This commit is contained in:
parent
8c1ea03f95
commit
aa88c30565
4 changed files with 34 additions and 1 deletions
|
@ -1,8 +1,15 @@
|
|||
class Epp::CommandsController < ApplicationController
|
||||
include Epp::Common
|
||||
include Epp::CommandsHelper
|
||||
include Epp::DomainsHelper
|
||||
|
||||
OBJECT_TYPES = {
|
||||
'http://www.nic.cz/xml/epp/domain-1.4 domain-1.4.xsd' => 'domain'
|
||||
}
|
||||
|
||||
private
|
||||
def create
|
||||
render '/epp/domains/create'
|
||||
type = OBJECT_TYPES[parsed_frame.css('create create').attr('schemaLocation').value]
|
||||
send("create_#{type}")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue