Skip to content

Commit

Permalink
Fix to router
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Feb 8, 2024
1 parent 77e061d commit 5253059
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/routes/place-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ placeRouter.get(
}
});

console.log((place as any)?.place.names)
console.log(place);

(place as any).API_PORT = API_PORT;

const PDF_TEMPLATE = fs.readFileSync(
__dirname + '/../templates/places/placePrint.handlebars'
);
Expand All @@ -128,7 +129,7 @@ placeRouter.get(
if (format == 'html') {
res.send(data);
} else {
let pdf = await generatePDF(data, "letter", false);
let pdf = await generatePDF(data, 'letter', false);
res.setHeader('Content-disposition', `filename="SitePrint.pdf"`);
res.setHeader('Content-type', 'application/pdf');
res.send(pdf);
Expand Down

0 comments on commit 5253059

Please sign in to comment.