Allow fastify.i18n to be used outside of i18n routes

This commit is contained in:
Robbie Antenesse 2020-09-20 16:42:33 -06:00
parent fc643c6388
commit 2cfa08abe3
1 changed files with 1 additions and 1 deletions

View File

@ -47,4 +47,4 @@ async function plugin (fastify, opts, done) {
done();
}
module.exports = plugin;
module.exports = fp(plugin);