text: 'use strict';
  
  const { parseMultipartData, sanitizeEntity } = require('strapi-utils');
  /**
   * Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
   * to customize this controller
   */
  
  const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY)
  
  module.exports = {
      async find(ctx) {
        try {
          const custLst = await stripe.customers.list();
          ctx.send(custLst.data)
        }
        catch (err) {
          ctx.send({ error: 'Error fetching customers' })
        }
      } 
  };
  