text: const UserController = require('../../controllers/userController');
  
  /**
   * API profile route endpoint definitions.
   */
  module.exports = (fastify, opts, done) => {
  
    fastify.route({
      method: 'GET',
      url: '/profile',
      preHandler: fastify.auth([
        fastify.authJwtVerify
      ]),
      handler: UserController.handleGetUserProfile
    });
  
    done();
  };