Add user route

This commit is contained in:
Isaac
2022-05-07 18:28:22 +01:00
parent a1823a750e
commit ad9bd98933
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
module.exports.get = fastify => ({
handler: req => req.user.payload,
onRequest: [fastify.authenticate],
});