fleet/website/api/controllers/view-fleetctl-preview.js

40 lines
623 B
JavaScript
Raw Normal View History

module.exports = {
friendlyName: 'View fleetctl preview',
description: 'Display "fleetctl preview" page.',
inputs: {
start: {
type: 'boolean',
description: 'A boolean flag that will hide the "next steps" buttons on the page if set to true',
defaultsTo: false,
}
},
exits: {
success: {
viewTemplatePath: 'pages/fleetctl-preview'
},
redirect: {
description: 'The requesting user is not logged in.',
responseType: 'redirect'
},
},
fn: async function ({start}) {
// Respond with view.
return {hideNextStepsButtons: start};
}
};