api changes:
- GET /preorder/open - get all open preorders - added extref to preorder requests and responses, can be used to identify a specific preorder
This commit is contained in:
@@ -413,11 +413,11 @@ class mfBaseApicontroller {
|
||||
if(!is_array($this->routes) || !count($this->routes)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//var_dump($params);exit;
|
||||
$params = trim($params, "/");
|
||||
$m = [];
|
||||
|
||||
if(preg_match('/\.(\w+)$/', $params, $m)) {
|
||||
if(preg_match('/\.(csv|json|html|txt)$/', $params, $m)) {
|
||||
if($m[1]) {
|
||||
$format = strtolower($m[1]);
|
||||
$params = preg_replace("/\.$format$/", "", $params);
|
||||
@@ -453,7 +453,7 @@ class mfBaseApicontroller {
|
||||
continue;
|
||||
} else {
|
||||
if($rp != $req_parts[$i]) {
|
||||
continue 2; // break out of this loop and continue outer foreach
|
||||
continue 2; // break out of this loop and continue outer foreach (try next route)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user