module.exports = { friendlyName: 'View waitlist', description: 'Display "Waitlist" page.', exits: { success: { viewTemplatePath: 'pages/try-fleet/waitlist' }, redirect: { description: 'This user does not have a valid Fleet Sandbox instance and is being redirected.', responseType: 'redirect' }, }, fn: async function () { if(!this.req.me.inSandboxWaitlist){ throw {redirect: '/try-fleet/sandbox' }; } // Respond with view. return {}; } };