diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-03 14:28:46 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-03 14:28:46 +0100 |
commit | b8e2d75cc1c74584dfdf8571c241dab7182c4543 (patch) | |
tree | 3fdfa0d55b8c33d75b1f63ac7b80112f07941254 /web/json.cgi | |
parent | a90bb442e432e97b0714cf3ce645b0c5c50765fe (diff) | |
parent | 7b405637a1ac3436cf90acc7d5ad46f1b80c8250 (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'web/json.cgi')
-rwxr-xr-x | web/json.cgi | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/web/json.cgi b/web/json.cgi deleted file mode 100755 index 70ae2a76f..000000000 --- a/web/json.cgi +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/perl -w -I../perllib - -# json.cgi: -# A small JSON API for FixMyStreet -# -# Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. -# Email: louise@mysociety.org. WWW: http://www.mysociety.org -# -# $Id: json.cgi,v 1.4 2010-01-20 11:31:26 matthew Exp $ - -# use strict; -# use Error qw(:try); -# use JSON; -# use Standard; -# -# sub main { -# my $q = shift; -# my $problems; -# my $type = $q->param('type') || ''; -# my $start_date = $q->param('start_date') || ''; -# my $end_date = $q->param('end_date') || ''; -# if ($start_date !~ /^\d{4}-\d\d-\d\d$/ || $end_date !~ /^\d{4}-\d\d-\d\d$/) { -# $problems = { error => 'Invalid dates supplied' }; -# } elsif ($type eq 'new_problems') { -# $problems = Problems::created_in_interval($start_date, $end_date); -# } elsif ($type eq 'fixed_problems') { -# $problems = Problems::fixed_in_interval($start_date, $end_date); -# } -# print $q->header( -type => 'application/json; charset=utf-8' ); -# print JSON::to_json($problems); -# } -# -# -# Page::do_fastcgi(\&main); -# |