Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small fix to prevent people going to /constituency without giving a n…

…ame.
  • Loading branch information...
commit 0bb9fcbe0631ecba3800d24e56aa256e9517cc44 1 parent d7b6999
Dave Cross authored July 21, 2013

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  PoliticalWeb/lib/PoliticalWeb.pm
4  PoliticalWeb/lib/PoliticalWeb.pm
@@ -35,6 +35,10 @@ get '/about/' => sub {
35 35
   return $page;  
36 36
 };
37 37
 
  38
+get '/constituency/?' => sub {
  39
+  template 'index', { error => 'That constituency' };
  40
+};
  41
+
38 42
 get '/constituency/:constname' => sub {
39 43
   my $constit = get_const(params->{constname});
40 44
   my $mp      = get_mp($constit) if $constit;

0 notes on commit 0bb9fcb

Please sign in to comment.
Something went wrong with that request. Please try again.