Basic transfer command for domain

This commit is contained in:
Martin Lensment 2014-08-27 17:25:39 +03:00
parent bb78c0f581
commit 707c60b36e
8 changed files with 76 additions and 2 deletions

View file

@ -9,6 +9,8 @@ module Epp::Common
included do
protect_from_forgery with: :null_session
before_action :validate_request, only: [:proxy]
helper_method :current_epp_user
end
def proxy

View file

@ -14,6 +14,10 @@ class Epp::CommandsController < ApplicationController
send("renew_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def transfer
send("transfer_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def check
send("check_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end