Updated WarehouseOrder and WarehouseOrderRequest

This commit is contained in:
Luca Haid
2025-03-06 10:29:48 +01:00
parent 9ce1c2a4fe
commit a4df764a49
21 changed files with 1236 additions and 721 deletions

View File

@@ -73,4 +73,19 @@ class FileController extends mfBaseController {
return true;
}
protected function getByIdAction() {
$file = new File($this->request->id);
if (!$file->id) {
http_response_code(404);
self::returnJson(["error" => "File not found"]);
return;
}
self::returnJson([
"id" => $file->id,
"filename" => $file->orig_filename
]);
}
}