Skip to content

Instantly share code, notes, and snippets.

@satyapendem
Created December 20, 2019 05:58
Show Gist options
  • Save satyapendem/d2810f7d88efe8e599c53ffa79ffff49 to your computer and use it in GitHub Desktop.
Save satyapendem/d2810f7d88efe8e599c53ffa79ffff49 to your computer and use it in GitHub Desktop.
module.exports = async function(fastify, opts) {
fastify.get(
"/api/validateAccessToken",
{
preValidation: [fastify.authenticate]
},
async function(req, res) {
res.status(200).send({msg: "Success"});
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment