From 5cfb001b6aac7b459d46abdbf03a27291a1932c1 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Thu, 18 Aug 2016 14:22:25 +0300 Subject: [PATCH] Story#128054415 - default route for epp if none matches --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index 39d6b3937..c4f1cf32c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 => '/'