Middleware
Route Middlewares
CSRF
Changelog
Last updated
Last updated
app/
├── api/
│ └── v1/
│ └── accounts-search/
│ └── index.ts
│ └── schema.json
│ └── accounts-update/
│ └── index.ts
│ └── schema.json
│ └── middleware.ts
│ └── webhooks/
│ └── stripe-webhook/
│ └── index.ts
│ └── middleware.ts
└── ...other filesexport default async function Middleware (instance: FastifyInstance) {
// `instance` is an instance of FastifyInstance
// All interfaces available to FastifyInstance is available here
instance.register(async function anotherPlugin() {});
instance.addHook('onReply', async function (request, reply) {});
}