# API

The Hono backend is mounted inside Next at `/api`.

- `GET /api/health`
- `GET /api/sample-property`
- `GET /api/templates`
- `GET /api/projects`
- `GET /api/assets/fonts/cairo`
- `POST /api/pdf/export`

`POST /api/pdf/export` accepts:

```json
{
  "property": {
    "title": "فيلا فاخرة",
    "description": "وصف العرض",
    "price": 1200000,
    "currency": "ريال",
    "type": "فيلا",
    "status": "AVAILABLE",
    "bedrooms": 5,
    "bathrooms": 6,
    "area": 350,
    "location": "النرجس",
    "city": "الرياض",
    "country": "السعودية",
    "images": [],
    "features": ["حديقة", "مسبح"],
    "parking": 2,
    "contactInfo": "+966 50 000 0000",
    "companyLogos": [],
    "marketer": { "name": "أحمد", "role": "مسوق عقاري" }
  },
  "template": {
    "content": [
      { "type": "Title" },
      { "type": "Price" },
      { "type": "DetailsGrid" },
      { "type": "ContactCard" }
    ]
  }
}
```