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 ),