Updated WarehouseOrder and WarehouseOrderRequest
This commit is contained in:
@@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user