added response for wrong epp path

This commit is contained in:
Oleg Hasjanov 2021-06-10 14:16:48 +03:00
parent 5b8b18f584
commit 4cf7a103c8
9 changed files with 91 additions and 28 deletions

View file

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