aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/general_controller.rb8
-rw-r--r--config/routes.rb4
2 files changed, 10 insertions, 2 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index fdbd87c77..f9365bbd3 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: general_controller.rb,v 1.6 2008-03-10 02:05:01 francis Exp $
+# $Id: general_controller.rb,v 1.7 2008-03-10 12:24:10 francis Exp $
class GeneralController < ApplicationController
@@ -76,6 +76,11 @@ class GeneralController < ApplicationController
@highlighting = @solr_object.highlights
end
+ def fai_test
+ sleep 10
+ render :text => "awake\n"
+ end
+
private
# Used in front page search for public body
@@ -88,5 +93,6 @@ class GeneralController < ApplicationController
:order => 'name', :limit=>10)
return @public_bodies
end
+
end
diff --git a/config/routes.rb b/config/routes.rb
index 07b1c570f..b4a6259ce 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: routes.rb,v 1.43 2008-03-07 23:13:39 francis Exp $
+# $Id: routes.rb,v 1.44 2008-03-10 12:24:11 francis Exp $
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
@@ -19,6 +19,8 @@ ActionController::Routing::Routes.draw do |map|
general.search_redirect '/search', :action => 'search_redirect'
general.search '/search/*query', :action => 'search'
+
+ general.fai_test '/test', :action => 'fai_test'
end
map.with_options :controller => 'request' do |request|