Skip to content

Commit

Permalink
chore(core): Deprecate PreviewController::getPreview() endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Feb 3, 2025
1 parent 87fd982 commit 52f3f2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Controller/PreviewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public function __construct(
/**
* Get a preview by file path
*
* Deprecated: Use getPreviewByFileId instead
* @deprecated Use getPreviewByFileId instead
* @param string $file Path of the file
* @param int $x Width of the preview. A width of -1 will use the original image width.
* @param int $y Height of the preview. A height of -1 will use the original image height.
Expand Down
2 changes: 2 additions & 0 deletions core/openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -8197,6 +8197,8 @@
"get": {
"operationId": "preview-get-preview",
"summary": "Get a preview by file path",
"description": "Deprecated: Use getPreviewByFileId instead",
"deprecated": true,
"tags": [
"preview"
],
Expand Down
2 changes: 2 additions & 0 deletions core/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8197,6 +8197,8 @@
"get": {
"operationId": "preview-get-preview",
"summary": "Get a preview by file path",
"description": "Deprecated: Use getPreviewByFileId instead",
"deprecated": true,
"tags": [
"preview"
],
Expand Down

0 comments on commit 52f3f2b

Please sign in to comment.