switched Api and Format middleware to extend RackMiddleware

This commit is contained in:
2011-11-21 16:06:50 +00:00
parent bd64839c39
commit c9a2f56932
2 changed files with 2 additions and 10 deletions

View File

@@ -1,10 +1,6 @@
<?php <?php
class Api { class Api extends RackMiddleware {
function __construct (&$app) {
$this->app =& $app;
}
function call (&$env) { function call (&$env) {
if ( preg_match("/^\/api\/([a-z]{1}[a-z0-9]*)/i", $env["PATH_INFO"], $match) ) { if ( preg_match("/^\/api\/([a-z]{1}[a-z0-9]*)/i", $env["PATH_INFO"], $match) ) {

View File

@@ -1,10 +1,6 @@
<?php <?php
class Format { class Format extends RackMiddleware {
function __construct (&$app) {
$this->app =& $app;
}
function call (&$env) { function call (&$env) {