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
class Api {
function __construct (&$app) {
$this->app =& $app;
}
class Api extends RackMiddleware {
function call (&$env) {
if ( preg_match("/^\/api\/([a-z]{1}[a-z0-9]*)/i", $env["PATH_INFO"], $match) ) {

View File

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