Module: server

Main Express server application file. Handles API endpoints, static file serving, and core business logic execution.

Source:

Methods

(inner) hydrateProduct(product) → {Object}

Helper function to transform complex product objects (class instances) into simple Data Transfer Objects (DTOs) for API response.

Parameters:
Name Type Description
product Object

An instance of a product class (Flower, Bouquet, etc.).

Source:
Returns:

A simplified object containing key product data.

Type
Object