2021-04-01 00:24:42 +00:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
friendlyName: 'View pricing',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
description: 'Display "Pricing" page.',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exits: {
|
|
|
|
|
|
|
|
|
|
success: {
|
|
|
|
|
viewTemplatePath: 'pages/pricing'
|
2022-12-05 20:11:46 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
badConfig: {
|
|
|
|
|
responseType: 'badConfig'
|
|
|
|
|
},
|
2021-04-01 00:24:42 +00:00
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn: async function () {
|
|
|
|
|
|
2022-12-05 20:11:46 +00:00
|
|
|
if(!_.isObject(sails.config.builtStaticContent) || !_.isArray(sails.config.builtStaticContent.pricingTable)) {
|
|
|
|
|
throw {badConfig: 'builtStaticContent.pricingTable'};
|
|
|
|
|
}
|
|
|
|
|
let pricingTable = sails.config.builtStaticContent.pricingTable;
|
|
|
|
|
|
2021-04-01 00:24:42 +00:00
|
|
|
// Respond with view.
|
2022-12-05 20:11:46 +00:00
|
|
|
return { pricingTable };
|
2021-04-01 00:24:42 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|