feat(admin): add API endpoint to download order confirmation PDF securely as attachment
This commit is contained in:
@@ -224,7 +224,7 @@ export function OrdersTable({ initialOrders }: OrdersTableProps) {
|
||||
</a>
|
||||
</Button>
|
||||
<Button variant="secondary" size="sm" asChild className="h-8 text-xs">
|
||||
<a href={order.pdf_url} download>
|
||||
<a href={`/api/admin/orders/${order.id}/download`}>
|
||||
<Download className="w-3.5 h-3.5" />
|
||||
</a>
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user