Merge pull request #1952 from internetee/html-error-returned-for-invalid-epp-xml-request

added errors handler
This commit is contained in:
Timo Võhmar 2021-05-03 09:40:32 +03:00 committed by GitHub
commit e3edf78aa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 3 deletions

View file

@ -36,6 +36,7 @@ Rails.application.routes.draw do
post 'command/poll', to: 'polls#poll', as: 'poll', constraints: EppConstraint.new(:poll)
get 'error/:command', to: 'errors#error'
get 'error', to: 'errors#command_handler'
end
namespace :repp do