Skip to content

Commit

Permalink
Added API call for school closings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mheadd committed Apr 17, 2013
1 parent 8be1c17 commit 2140548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
RewriteCond %{SCRIPT_FILENAME} !-d

RewriteRule ^([0-9]{4}\/?[\w]*?)$ index.php?uri=$1 [NC,L,QSA]
RewriteRule ^(closing)$ index.php?uri=$1 [NC,L,QSA]
</IfModule>
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// Routes for HTTP requests.
dispatch('/', 'schoolsSummary');
dispatch('/closing', 'SchoolClosingSummary');
dispatch('/closing', 'schoolClosingSummary');
dispatch('/:code/:data', 'schoolLookup');

// Run this sucker!
Expand All @@ -42,7 +42,7 @@ function schoolsSummary() {
/*
* Return summary for schools slated for closure.
*/
function SchoolClosingSummary() {
function schoolClosingSummary() {
try {

// Get callback parameter (if used).
Expand Down

0 comments on commit 2140548

Please sign in to comment.