Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejackson1 committed Aug 30, 2024
1 parent 7660ea1 commit aba940a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Rest/Rest_Download_Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down

0 comments on commit aba940a

Please sign in to comment.