Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fastify hook preParsing|Add an instance fastify preParsing hook|ffpreparsing, ho
fastify hook preValidation|Add an instance fastify preValidation hook|ffprevalidation, hookprevalidation
fastify hook preHandler|Add an instance fastify preHandler hook|ffprehandler, hookprehandler
fastify hook preSerialization|Add an instance fastify preSerialization hook|ffpreserialization, hookpreserialization
fastify hook peClose|Add an instance fastify preClose hook|ffpreclose, hookpreclose
fastify hook onError|Add an instance fastify onError hook|ffonerror, hookonerror
fastify hook onRequestAbort|Add an instance fastify onRequestAbort hook|ffonrequestabort, hookonrequestabort
fastify hook onSend|Add an instance fastify onSend hook|ffonsend, hookonsend
Expand Down
13 changes: 13 additions & 0 deletions snippets/snippets-js.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,19 @@
],
"description": "Add the fastify onReady application hook"
},
"fastify application hook preClose": {
"scope": "javascript,typescript",
"prefix": [
"ffpreclose",
"hookpreclose"
],
"body": [
"app.addHook('preClose', async function hook () {",
"",
"})"
],
"description": "Add the fastify preClose application hook"
},
"fastify application hook onClose": {
"scope": "javascript,typescript",
"prefix": [
Expand Down