view-account-overview.js 572 B

12345678910111213141516171819202122232425262728293031
  1. module.exports = {
  2. friendlyName: 'View account overview',
  3. description: 'Display "Account Overview" page.',
  4. exits: {
  5. success: {
  6. viewTemplatePath: 'pages/account/account-overview',
  7. }
  8. },
  9. fn: async function (inputs, exits) {
  10. // If billing features are enabled, include our configured Stripe.js
  11. // public key in the view locals. Otherwise, leave it as undefined.
  12. return exits.success({
  13. stripePublishableKey: sails.config.custom.enableBillingFeatures? sails.config.custom.stripePublishableKey : undefined,
  14. });
  15. }
  16. };