From aba940a6b8ba31c8a1c5f89fdd715bbec7b994ad Mon Sep 17 00:00:00 2001 From: Jake Jackson Date: Fri, 30 Aug 2024 16:11:13 +1000 Subject: [PATCH] no message --- src/Rest/Rest_Download_Pdf.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rest/Rest_Download_Pdf.php b/src/Rest/Rest_Download_Pdf.php index fbca0c974..aa3e8936f 100644 --- a/src/Rest/Rest_Download_Pdf.php +++ b/src/Rest/Rest_Download_Pdf.php @@ -155,6 +155,8 @@ public function get_item( $request ) { return $path_to_pdf; } + /* @TODO - add "type" with enum "url" or "base64". If "url" generate standard signed PDF URL with 1 hour expiration and return as "url" */ + $response = new WP_REST_Response( [ 'filename' => wp_basename( $path_to_pdf ),