Initial project structure with sails.js
This commit is contained in:
27
api/controllers/dashboard/view-welcome.js
Normal file
27
api/controllers/dashboard/view-welcome.js
Normal file
@ -0,0 +1,27 @@
|
||||
module.exports = {
|
||||
|
||||
|
||||
friendlyName: 'View welcome page',
|
||||
|
||||
|
||||
description: 'Display the dashboard "Welcome" page.',
|
||||
|
||||
|
||||
exits: {
|
||||
|
||||
success: {
|
||||
viewTemplatePath: 'pages/dashboard/welcome',
|
||||
description: 'Display the welcome page for authenticated users.'
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
|
||||
fn: async function () {
|
||||
|
||||
return {};
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
Reference in New Issue
Block a user