Glossary: Building APIs with Node.js
app.addHook
Also written: addHook, onClose hook
A Fastify call that registers a function to run at a fixed point. kc-api uses the `onClose` hook to close the database when the app closes.
Glossary: Building APIs with Node.js
Also written: addHook, onClose hook
A Fastify call that registers a function to run at a fixed point. kc-api uses the `onClose` hook to close the database when the app closes.