Skip to content

docs: Fix incorrect variable use#6455

Merged
Eomm merged 1 commit intofastify:mainfrom
smith558:patch-3
Jan 18, 2026
Merged

docs: Fix incorrect variable use#6455
Eomm merged 1 commit intofastify:mainfrom
smith558:patch-3

Conversation

@smith558
Copy link
Contributor

@smith558 smith558 commented Jan 17, 2026

Fixes incorrect variable use. We want to register the routes on the encapsulated Fastify instance in this example (the one we just added hooks to), not the global one.

Signed-off-by: Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 17, 2026
@Eomm Eomm merged commit d79fa75 into fastify:main Jan 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants