From 3ef36c3c9b5393c78c0af59b9f4e3f4528472357 Mon Sep 17 00:00:00 2001 From: Edmund von der Burg Date: Wed, 23 Feb 2011 22:10:37 +0000 Subject: More work on the Cobrand and setting for request test to see welsh about us page --- perllib/FixMyStreet/App/Controller/Root.pm | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Root.pm') diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm index b61650f79..debddef38 100644 --- a/perllib/FixMyStreet/App/Controller/Root.pm +++ b/perllib/FixMyStreet/App/Controller/Root.pm @@ -22,23 +22,13 @@ Set up general things for this instance =cut -sub auto { +sub auto : Private { my ( $self, $c ) = @_; - return; -} - -=head2 index - -The root page (/) - -=cut - -sub index : Path : Args(0) { - my ( $self, $c ) = @_; + # decide which cobrand this request should use + $c->setup_cobrand(); - # Hello World - $c->response->body( $c->welcome_message ); + return 1; } =head2 default -- cgit v1.2.3