2023-02-13 23:06:02 +00:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
|
|
|
2023-12-14 23:06:31 +00:00
|
|
|
friendlyName: 'View endpoint ops',
|
2023-02-13 23:06:02 +00:00
|
|
|
|
|
|
|
|
|
2023-12-14 23:06:31 +00:00
|
|
|
description: 'Display "Endpoint ops" page.',
|
2023-02-13 23:06:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
exits: {
|
|
|
|
|
|
|
|
|
|
success: {
|
2023-12-14 23:06:31 +00:00
|
|
|
viewTemplatePath: 'pages/endpoint-ops'
|
2023-12-18 21:09:58 +00:00
|
|
|
},
|
|
|
|
|
badConfig: { responseType: 'badConfig' },
|
2023-02-13 23:06:02 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn: async function () {
|
2023-12-18 21:09:58 +00:00
|
|
|
if (!_.isObject(sails.config.builtStaticContent) || !_.isArray(sails.config.builtStaticContent.testimonials) || !sails.config.builtStaticContent.compiledPagePartialsAppPath) {
|
|
|
|
|
throw {badConfig: 'builtStaticContent.testimonials'};
|
|
|
|
|
}
|
|
|
|
|
// Get testimonials for the <scrolalble-tweets> component.
|
|
|
|
|
let testimonialsForScrollableTweets = sails.config.builtStaticContent.testimonials;
|
2023-02-13 23:06:02 +00:00
|
|
|
// Respond with view.
|
2023-12-18 21:09:58 +00:00
|
|
|
return {
|
|
|
|
|
testimonialsForScrollableTweets,
|
|
|
|
|
};
|
2023-02-13 23:06:02 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|