Skip to content

Commit 03f892c

Browse files
committed
chore(core): Deprecate PreviewController::getPreview() endpoint
Signed-off-by: provokateurin <[email protected]>
1 parent c38aa33 commit 03f892c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

core/Controller/PreviewController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function __construct(
4242
/**
4343
* Get a preview by file path
4444
*
45+
* Deprecated: Use getPreviewByFileId instead
46+
* @deprecated Use getPreviewByFileId instead
4547
* @param string $file Path of the file
4648
* @param int $x Width of the preview. A width of -1 will use the original image width.
4749
* @param int $y Height of the preview. A height of -1 will use the original image height.

core/openapi-full.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8197,6 +8197,8 @@
81978197
"get": {
81988198
"operationId": "preview-get-preview",
81998199
"summary": "Get a preview by file path",
8200+
"description": "Deprecated: Use getPreviewByFileId instead",
8201+
"deprecated": true,
82008202
"tags": [
82018203
"preview"
82028204
],

core/openapi.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8197,6 +8197,8 @@
81978197
"get": {
81988198
"operationId": "preview-get-preview",
81998199
"summary": "Get a preview by file path",
8200+
"description": "Deprecated: Use getPreviewByFileId instead",
8201+
"deprecated": true,
82008202
"tags": [
82018203
"preview"
82028204
],

0 commit comments

Comments
 (0)