mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
added response for wrong epp path
This commit is contained in:
parent
5b8b18f584
commit
4cf7a103c8
9 changed files with 91 additions and 28 deletions
|
@ -34,6 +34,18 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
constraints(EppConstraint.new(:error)) do
|
||||
controller('errors') do
|
||||
post 'command/create', to: 'errors#wrong_schema'
|
||||
post 'command/update', to: 'errors#wrong_schema'
|
||||
post 'command/info', to: 'errors#wrong_schema'
|
||||
post 'command/check', to: 'errors#wrong_schema'
|
||||
post 'command/transfer', to: 'errors#wrong_schema'
|
||||
post 'command/renew', to: 'errors#wrong_schema'
|
||||
post 'command/delete', to: 'errors#wrong_schema'
|
||||
end
|
||||
end
|
||||
|
||||
post 'command/poll', to: 'polls#poll', as: 'poll', constraints: EppConstraint.new(:poll)
|
||||
get 'error/:command', to: 'errors#error'
|
||||
get 'error', to: 'errors#command_handler'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue