Skip to content

Commit

Permalink
chore: replace use of deprecated fastify.request.context (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
matijagaspar authored Oct 16, 2022
1 parent 4b56661 commit 69e6e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function fastifyView (fastify, opts, next) {
}

function getRequestedPath (fastify) {
return (fastify && fastify.request) ? fastify.request.context.config.url : null
return (fastify && fastify.request) ? fastify.request.routerPath : null
}
// Gets template as string (or precompiled for Handlebars)
// from LRU cache or filesystem.
Expand Down

0 comments on commit 69e6e3a

Please sign in to comment.