aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index a8c332fb8..538c069ed 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -213,9 +213,11 @@ ChouetteIhm::Application.routes.draw do
get '/help/(*slug)' => 'help#show'
- get '/404', to: 'errors#not_found'
- get '/403', to: 'errors#not_allowed'
- get '/422', to: 'errors#server_error'
- get '/500', to: 'errors#server_error'
+ if Rails.env.production?
+ get '404', to: 'errors#not_found'
+ get '403', to: 'errors#not_allowed'
+ get '422', to: 'errors#server_error'
+ get '500', to: 'errors#server_error'
+ end
end