Skip to content

Commit

Permalink
docs(reference/routes): fix example on constraints (#5468)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Di Prisco <Cadienvan@users.noreply.github.com>
  • Loading branch information
Cadienvan committed May 15, 2024
1 parent 47f2375 commit 102b40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Reference/Routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ matching wildcard subdomains (or any other pattern):
fastify.route({
method: 'GET',
url: '/',
constraints: { host: /.*\.fastify\.io/ }, // will match any subdomain of fastify.dev
constraints: { host: /.*\.fastify\.dev/ }, // will match any subdomain of fastify.dev
handler: function (request, reply) {
reply.send('hello world from ' + request.headers.host)
}
Expand Down

0 comments on commit 102b40e

Please sign in to comment.