Build the Fastify application with its API routes and dependency wiring.
The HTTP layer is intentionally thin: it reads the request, validates the
request input, calls the application service, and translates the result or
application error into an HTTP response. It performs no database queries and
contains no database-specific logic.
Build the Fastify application with its API routes and dependency wiring.
The HTTP layer is intentionally thin: it reads the request, validates the request input, calls the application service, and translates the result or application error into an HTTP response. It performs no database queries and contains no database-specific logic.