Add basic domain creating via EPP

This commit is contained in:
Martin Lensment 2014-06-25 18:12:00 +03:00
parent 8c1ea03f95
commit aa88c30565
4 changed files with 34 additions and 1 deletions

View file

@ -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