From 5c373afc2fe1b47cf8e51c69606d23b50b16947b Mon Sep 17 00:00:00 2001 From: "W.T. Chang" <1546333+wtchangdm@users.noreply.github.com> Date: Thu, 13 Oct 2022 17:50:52 +0800 Subject: [PATCH] Point route config link to fastify version 4.8.x The route config link still points to document for fastify 2.1.x. This MR modifies the link to 4.8.x (since there is no link for major version `4.x`). It's slightly better than just pointing to `latest` as this plugin might not be compatible with the future fastify version (e.g. v5) right away. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4961771..7ba48ef 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ fastify.addContentTypeParser('application/xml', (req, done) => { ### config An object accessible within the `preHandler` via `reply.context.config`. -See [Config](https://www.fastify.io/docs/v2.1.x/Routes/#config) in the Fastify +See [Config](https://www.fastify.io/docs/v4.8.x/Reference/Routes/#config) in the Fastify documentation for information on this option. Note: this is merged with other configuration passed to the route.