Story#128054415 - default route for epp if none matches

This commit is contained in:
Vladimir Krylov 2016-08-18 14:22:25 +03:00
parent fdb9b5501f
commit 5cfb001b6a

View file

@ -13,6 +13,7 @@ Rails.application.routes.draw do
post 'command/:command', to: 'errors#not_found', constraints: EppConstraint.new(:not_found) # fallback route
get 'error/:command', to: 'errors#error'
match "*command", to: 'errors#error', via: [:post, :get, :patch, :put, :delete]
end
mount Repp::API => '/'