Fastify Third-Party ​
Fastify is a high-performance web framework for Node.js, designed to offer an exceptional developer experience with minimal overhead and a robust plugin architecture.
You can integrate Medicus with your Fastify application by attaching it to your instance’s lifecycle hooks using the fastifyMedicusPlugin
:
ts
import from 'fastify';
import { } from 'medicus/fastify';
import { } from 'medicus/node';
const = ();
// Register Medicus plugin
.(, {
: [()]
});
// The health check route is automatically set up
.({ : 3000 });
Once registered, the health check route will be available at http://localhost:3000/health
.
Additionally, the app.medicus
object is exposed, allowing you to interact directly with the Medicus instance for custom health check logic.
For more details about Fastify, visit the Fastify documentation.