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:
Frank Schubert
2023-02-27 16:17:37 +01:00
parent 33dc42eadd
commit 1a8848e02f
5 changed files with 182 additions and 19 deletions
+3 -3
View File
@@ -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)
}
}
}