Render error message from the app, instead of mod_epp

This commit is contained in:
Martin Lensment 2014-06-25 15:38:18 +03:00
parent 9f30ec3cc7
commit 8c1ea03f95
5 changed files with 26 additions and 5 deletions

View file

@ -2,6 +2,7 @@ Rails.application.routes.draw do
namespace(:epp) do
match 'session/:command', to: 'sessions#proxy', defaults: { format: :xml }, via: [:get, :post]
match 'command/:command', to: 'commands#proxy', defaults: { format: :xml }, via: [:post, :get]
get 'error/:command', to: 'errors#error', defaults: { format: :xml }
end
# The priority is based upon order of creation: first created -> highest priority.