fleet/website/api/controllers/try-fleet/view-waitlist.js

36 lines
522 B
JavaScript
Raw Normal View History

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 {};
}
};