mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Introduce module
This commit is contained in:
parent
7dc533d10c
commit
fa73a0aacd
10 changed files with 1089 additions and 1110 deletions
|
@ -1,13 +1,15 @@
|
|||
class Epp::ErrorsController < EppController
|
||||
skip_authorization_check
|
||||
module Epp
|
||||
class ErrorsController < BaseController
|
||||
skip_authorization_check
|
||||
|
||||
def error
|
||||
epp_errors << { code: params[:code], msg: params[:msg] }
|
||||
render_epp_response '/epp/error'
|
||||
end
|
||||
def error
|
||||
epp_errors << { code: params[:code], msg: params[:msg] }
|
||||
render_epp_response '/epp/error'
|
||||
end
|
||||
|
||||
def not_found
|
||||
epp_errors << { code: 2400, msg: t(:could_not_determine_object_type_check_xml_format_and_namespaces) }
|
||||
render_epp_response '/epp/error'
|
||||
def not_found
|
||||
epp_errors << { code: 2400, msg: t(:could_not_determine_object_type_check_xml_format_and_namespaces) }
|
||||
render_epp_response '/epp/error'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue