Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -54,7 +54,7 @@ app.post("/api/html-to-pdf", async (req, res) => {
|
|
| 54 |
const startTime = Date.now();
|
| 55 |
|
| 56 |
try {
|
| 57 |
-
const {
|
| 58 |
|
| 59 |
// Validate input
|
| 60 |
if (!htmlContent || !htmlContent.trim()) {
|
|
|
|
| 54 |
const startTime = Date.now();
|
| 55 |
|
| 56 |
try {
|
| 57 |
+
const { html_code: htmlContent, pdf_options: pdfOptions } = req.body || {};
|
| 58 |
|
| 59 |
// Validate input
|
| 60 |
if (!htmlContent || !htmlContent.trim()) {
|